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

Allow -source of choco push to use source names as Input #2219

Closed
ryanrichter94 opened this issue Mar 26, 2021 · 4 comments
Closed

Allow -source of choco push to use source names as Input #2219

ryanrichter94 opened this issue Mar 26, 2021 · 4 comments

Comments

@ryanrichter94
Copy link
Member

Description

Allow the -source switch of the choco push command to accept source names as input. Currently the source switch only accepts URLs as input.

@TheCakeIsNaOH
Copy link
Member

Isn't this a duplicate of #63?

@ryanrichter94
Copy link
Member Author

@TheCakeIsNaOH This is indeed a duplicate of #63. Thanks for reaching out i'll close this issue.

vexx32 added a commit to vexx32/choco that referenced this issue Apr 14, 2023
Having this logic in the ParseAdditionalArguments method makes the
command useless if there isn't a --source or defaultPushSource set.
The error that would occur happens before the command can even output
help information, and this also interferes with licensed functionality.

This change moves the checks into the Validate method and consolidates
the validation slightly as there was some double-work being done with
the validation logic being somewhat split between the two methods.
vexx32 added a commit to vexx32/choco that referenced this issue Apr 14, 2023
The tests were written to expect the throwing from the argument parsing
rather than the Validate method where they now throw. Moved these tests
into the proper place and amended them where necessary.
vexx32 added a commit to vexx32/choco that referenced this issue Apr 14, 2023
The tests were written to expect the throwing from the argument parsing
rather than the Validate method where they now throw. Moved these tests
into the proper place and amended them where necessary.
vexx32 added a commit to vexx32/choco that referenced this issue Apr 14, 2023
Having this logic in the ParseAdditionalArguments method makes the
command useless if there isn't a --source or defaultPushSource set.
The error that would occur happens before the command can even output
help information, and this also interferes with licensed functionality.

This change moves the checks into the Validate method and consolidates
the validation slightly as there was some double-work being done with
the validation logic being somewhat split between the two methods.
vexx32 added a commit to vexx32/choco that referenced this issue Apr 14, 2023
The tests were written to expect the throwing from the argument parsing
rather than the Validate method where they now throw. Moved these tests
into the proper place and amended them where necessary.
corbob added a commit that referenced this issue Apr 14, 2023
(#2219) Defer errors from defaultpushsource until validation for ChocolateyPushCommand
@gep13
Copy link
Member

gep13 commented Apr 19, 2023

Duplicate of #63

@gep13 gep13 marked this as a duplicate of #63 Apr 19, 2023
@gep13
Copy link
Member

gep13 commented Apr 25, 2023

The commits that are tagged against this issue will ultimately be related to the duplicate issue linked above.

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

No branches or pull requests

3 participants