Skip to content

fix: Support direct custom build script#2267

Merged
adamspofford-dfinity merged 16 commits intomasterfrom
spofford/runscript
Jun 21, 2022
Merged

fix: Support direct custom build script#2267
adamspofford-dfinity merged 16 commits intomasterfrom
spofford/runscript

Conversation

@adamspofford-dfinity
Copy link
Contributor

@adamspofford-dfinity adamspofford-dfinity commented Jun 15, 2022

Addresses SDK-476. Currently, type:custom's build flag obeys shell rules, i.e. "script.sh" does not work and requires "./script.sh". This changes the behavior to canonicalize the command against the dfx project root, and additionally set the cwd of the script to the project root.

@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner June 15, 2022 21:49
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please also add a changelog entry, and describe what this means?

but not "script.sh --args", for the same reason as the shell disallows it in the first place.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Would you please add a test that verifies the expected behavior with respect to custom build commands found both in the project and on the path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants