Repository navigation
fix(agents-box): install the m365 CLI under /usr/local so hermes v0.22 builds - #234
Merged
Merged
Conversation
…2 builds From hermes v0.22 the base image bundles Node under /opt/hermes/tools/node-*/ and npm's global prefix points there, off PATH. A bare `npm install -g` put `m365` in that bin dir and `m365 --version` failed with 127, which failed the fleet's upgrade-hermes rebuild to v0.22.5. Pin `--prefix /usr/local`, the old default, on PATH in every base image. Verified: built against nousresearch/hermes-agent:v0.22.5 on helm-agents (scratch tag); m365 v11.10.0 at /usr/local/bin/m365, openpyxl 3.1.5, serve /api/status answers 0.22.5. Claude-Session: https://claude.ai/code/session_01LdXVKJurmhkcFxdUJBLKcr
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/opt/hermes/tools/node-*/, and npm's global prefix points there, off PATH.npm install -g @pnp/cli-microsoft365putm365there, som365 --versionfailed with 127. That failed the fleet'supgrade-hermesrebuild to v0.22.5 (no agent was affected; the build failed before rollout).npm install -g --prefix /usr/local, the old default, which is on PATH in every base image. Comment and CHANGELOG updated.Test plan
deploy/agents-box/Dockerfileagainstnousresearch/hermes-agent:v0.22.5on helm-agents under a scratch tag: build exit 0.m365at/usr/local/bin/m365,m365 version= v11.10.0 (same as the live image),openpyxl3.1.5,hermes serve/api/statusanswers 0.22.5./usr/localalready was the prefix, so the build is unchanged there.https://claude.ai/code/session_01LdXVKJurmhkcFxdUJBLKcr