Skip to content

Commit

Permalink
don't check for init function in resolve.go
Browse files Browse the repository at this point in the history
this is a bug introduce in 1.58.0 golangci-lint and should be fixed soon
but we can work around for now like this for now, see:

golangci/golangci-lint#4697

fix some other yamllint error as well along the way.

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed May 6, 2024
1 parent cdf4a69 commit 192184c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ issues:
- path: _test\.go
linters:
- gosec
# hopefully we can remove this when https://github.com/golangci/golangci-lint/issues/4697 is fixed
- path: pkg/resolve/resolve.go
text: "don't use `init` function"
run:
build-tags:
- e2e
Expand Down
2 changes: 1 addition & 1 deletion .tekton/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- name: source
steps:
- name: hugo-gen
image: registry.access.redhat.com/ubi9/python-311 # using this image since it has git and curl and python
image: registry.access.redhat.com/ubi9/python-311
workingDir: $(workspaces.source.path)
env:
- name: UPLOADER_PUBLIC_URL
Expand Down

0 comments on commit 192184c

Please sign in to comment.