Skip to content

New name for "disable automatic resolution" #3706

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

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Sep 2, 2021

This adds a new alias for this flag and also updates the help text. Previous names of the flag will continue to work as well.

rdar://81961772

This adds a new alias for this flag and also updates the help text. Previous names of the flag will continue to work as well.

rdar://81961772
@neonichu
Copy link
Contributor Author

neonichu commented Sep 2, 2021

@swift-ci please smoke test

@neonichu neonichu merged commit 4af60f7 into main Sep 2, 2021
@neonichu neonichu deleted the new-disable-automatic-resolution-alias branch September 2, 2021 16:35

/// Use Package.resolved file for resolving dependencies.
@Flag(name: [.long, .customLong("disable-automatic-resolution")], help: "Disable automatic resolution if Package.resolved file is out-of-date")
@Flag(name: [.long, .customLong("disable-automatic-resolution"), .customLong("only-use-versions-from-resolved-file")], help: "Only use versions from the Package.resolved file and fail resolution if it is out-of-date")
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also add a deprecation warning when using the old flag to encourage folks to transition over? or at least adda comment here to say which one is "preferred"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure we can know which of the flags was used, maybe @natecook1000 has an idea how to do that without splitting it out into multiple flags.

mattt pushed a commit to mattt/swift-package-manager that referenced this pull request Sep 16, 2021
This adds a new alias for this flag and also updates the help text. Previous names of the flag will continue to work as well.

rdar://81961772
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.

4 participants