runtime: fix PATH - #234
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75e07ab415
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if err := linkChallengeBin(); err != nil { | ||
| return err | ||
| } |
There was a problem hiding this comment.
Preserve .init-created challenge bins
Because linkChallengeBin() runs during setupRunDirectories() before .init is executed, /run/challenge/bin is never created when a challenge creates /challenge/bin from .init instead of shipping it in the image. For challenges based on the generic challenges/common/Dockerfile.j2, which does not itself add /challenge/bin back to the image PATH, those runtime-created tools were previously found through the hard-coded /challenge/bin entry but now remain unreachable for the whole session; create the symlink unconditionally or refresh it after runInit().
Useful? React with 👍 / 👎.
Summary
Tests