Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

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

@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants