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 Prerelease function onto Constraint struct #100

Merged

Conversation

liamcervante
Copy link
Member

New function will return true if the underlying version contains a prerelease field.

This can be used within the github.com/hashicorp/terraform repository to fail versioning checks if the constraints contain a prerelease field. Example: liamcervante/terraform#1

Root issue: hashicorp/terraform#28148

@hashicorp-cla
Copy link

hashicorp-cla commented Jun 27, 2022

CLA assistant check
All committers have signed the CLA.

@alisdair alisdair requested a review from a team June 27, 2022 20:12
Copy link
Member

@alisdair alisdair left a comment

Choose a reason for hiding this comment

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

This makes sense to me!

@liamcervante liamcervante merged commit afc32b7 into hashicorp:main Jun 28, 2022
@liamcervante liamcervante deleted the liamcervante/constraint-prerelease branch June 28, 2022 08:47
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

3 participants