This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR will make it possible to provide flags for
go vet
command viago-check-config.json
object.Why?
One of the reasons why ipld/go-ipld-prime-proto#24 cannot be merged is because
go vet
fails withcomposite literal uses unkeyed fields
(see https://github.com/ipld/go-ipld-prime-proto/runs/4483048466?check_suite_focus=true). Unfortunately, the solution of changing the code to avoid this error doesn't work here becauseipldsch_satisfaction.go
is an autogenerated file. That's why I think allowing to provide-composites=false
togo vet
would be desirable in this case.I also tried to see if there is a way to add some magic comment to ignore this file during
go vet
but it seems it does not exist - golang/go#18432 (comment)go-check-config.json
example:Testing
go generate
with{"gogenerate":true}
config (go vet
correctly failed) - https://github.com/galargh/go-ipld-prime-proto/actions/runs/1707665427go vet
with{"govet":{"flags":"-composites=false"}}
config - https://github.com/galargh/go-ipld-prime-proto/actions/runs/1707657893