Closed cardil closed 2 years ago
Currently, we collect the tags using complicated Bash scripts. It's done in a couple of places, making it hard to maintain:
Also, the old tag syntax +build, we use, will eventually go away, and new syntax isn't so easy to parse with bash.
+build
Another idea would be to read the tags from .golangci.yaml if it's defined in repository (see: This is currently done with a config file for our linter - https://github.com/knative/serving/blob/3446ca3f8d523d41774c555fafef7b05c319a4ac/.golangci.yaml#L4-L6).
.golangci.yaml
Done in:
Currently, we collect the tags using complicated Bash scripts. It's done in a couple of places, making it hard to maintain:
Also, the old tag syntax
+build
, we use, will eventually go away, and new syntax isn't so easy to parse with bash.Another idea would be to read the tags from
.golangci.yaml
if it's defined in repository (see: This is currently done with a config file for our linter - https://github.com/knative/serving/blob/3446ca3f8d523d41774c555fafef7b05c319a4ac/.golangci.yaml#L4-L6).