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

[6.0.2] Bundles: Allow argument separator (--) #27128

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Jan 6, 2022

I forgot to set AllowArgumentSeparator = true in the bundle's command-line parser. This subverted the remaining code I added to flow additional arguments into application code.

Fixes #26945

Customer impact

Without this, it's impossible to specify application arguments from the migrations bundle. For example, to specify the ASP.NET Core environment to use when applying migrations.

Regression?

No. Migration bundles are new in EF Core 6.0.

Risk

Low. This flag only changes the behavior when specifying --. Currently, specifying -- will result in the following error.

Unrecognized option '--'

Verification

Added a unit test to ensure the flag is set.

Manually verified that arguments can now be flown into the application.

@bricelam bricelam requested a review from a team January 6, 2022 18:40
@bricelam bricelam merged commit 5f90495 into dotnet:release/6.0 Jan 7, 2022
@bricelam bricelam deleted the double-dash branch January 7, 2022 17:53
@ajcvickers ajcvickers removed this from the 6.0.2 milestone Jan 10, 2022
@ajcvickers ajcvickers changed the title [release/6.0] Bundles: Allow argument separator (--) [6.0.2] Bundles: Allow argument separator (--) Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants