Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --skip-postinstall cli option to install and update #475

Merged
merged 2 commits into from
Feb 20, 2021

Conversation

bcardiff
Copy link
Member

Partially implements the suggestions of #468 (comment)

The postinstall instructions will be logged with a trailing (skipped).

Usually the postinstall will generate target binaries that are then linked/copied by Package#install_executables.

With this PR the target binaries will not exist and wont be linked/copied, which is fine.

To complete the idea #468 (comment) and decouple the commands for Windows environments in a comfortable way I am not sure if it's better to a) make the shards postinstall --dry-run [shard names] perform postinstall and install_executables or if b) postinstall and install-executables should be different commands.

Either way that can be handled in a separate PR. This should be enough to download dependencies with postinstall in Windows.

Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@bcardiff bcardiff added this to the v0.14.0 milestone Feb 20, 2021
@bcardiff bcardiff merged commit b2d0e3f into crystal-lang:master Feb 20, 2021
@bcardiff bcardiff deleted the feature/skip-postinstall branch February 20, 2021 02:16
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.

None yet

2 participants