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

fix: add vendor manifests back #2558

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Feb 1, 2023

Signed-off-by: Sertac Ozercan sozercan@gmail.com

What this PR does / why we need it:
This was accidentally removed in #2541.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM with one nit

// This is used for vendoring frameworks to Gatekeeper.

//go:build tools
// +build tools
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the comment line under //go:build needs to be empty?

Taking this from:

Constraints may appear in any kind of source file (not just Go), but they must appear near the top of the file, preceded only by blank lines and other line comments. These rules mean that in Go files a build constraint must appear before the package clause.

To distinguish build constraints from package documentation, a build constraint should be followed by a blank line.

in https://pkg.go.dev/cmd/go#hdr-Build_constraints

Copy link
Member Author

Choose a reason for hiding this comment

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

good find. gofmt added the new syntax automatically but didn't leave the empty line.

The gofmt command will add an equivalent //go:build constraint when encountering the older syntax.

I removed the old syntax

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix!

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@sozercan sozercan merged commit 947676e into open-policy-agent:master Feb 1, 2023
@sozercan sozercan deleted the vendor-manifests branch February 1, 2023 23:01
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 7, 2023
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 8, 2023
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

2 participants