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

Added partial version detection for state install. #3190

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Mar 21, 2024

TaskDX-2648 `state install` supports wildcard versions

Similar to state init.

@mitchell-as
Copy link
Contributor Author

Test failure is one of the usual timeouts and not caused by this PR.

@mitchell-as mitchell-as marked this pull request as ready for review March 22, 2024 18:46
Copy link
Member

@MDrakos MDrakos left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -218,6 +222,18 @@ func (r *RequirementOperation) ExecuteRequirementOperation(

requirementName = normalized

// If a bare version number was given, and if it is a partial version number (e.g. requests@2),
// we'll want to ultimately append a '.x' suffix.
if versionRe.MatchString(requirementVersion) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Any appetite to centralizing this logic that is shared between init and install now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, they don't actually share much of the same code. One queries for a language, the other for a package/bundle.

@mitchell-as mitchell-as reopened this Mar 25, 2024
@mitchell-as mitchell-as merged commit 3162730 into version/0-44-0-RC1 Mar 25, 2024
16 of 25 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-2648 branch March 25, 2024 14:21
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