Repository navigation
feat(platform): custom profile hooks, publish-url check - #36
Merged
Merged
Conversation
The custom profile's prepare hook runs at the end of odx vendor and its verify hook during odx verify, with sh -c (cmd /C on Windows) in the project root and ODX_PROJECT_ROOT, ODX_ENVIRONMENT, ODX_SERIES, ODX_LOCKFILE, ODX_VENDOR_MANIFEST and ODX_REQUIREMENTS set, only with --allow-shell or when [trust] projects in the user configuration lists the project. odx build --publish requires the index's url and publish-url, so uv skips files the index already has.
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.
Phase 5, last pieces.
[tool.odx.platform.custom] prepareruns at the end ofodx vendor,verifyduringodx verify(a failure fails verification).sh -c/cmd /Cin the project root withODX_PROJECT_ROOT,ODX_ENVIRONMENT(empty until environments land),ODX_SERIES,ODX_LOCKFILE,ODX_VENDOR_MANIFEST,ODX_REQUIREMENTS.ODX_PLAN_JSONfrom the design is not provided yet.--allow-shell(new onvendorandverify) or when the user configuration's[trust] projectslists the project (now interpreted,~/expanded, compared canonically). Otherwise vendor warns and verify fails.odx build --publishrequires the index to haveurlandpublish-url: uv uses theurlto skip files the index already has, which makes publishing idempotent.run_checkedshared by build, publish and hooks.