Skip to content

Commit

Permalink
bump golangci-lint to v1.63.4 (#2950)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored Jan 28, 2025
1 parent 28fa547 commit 08bc960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commons-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define go_install
endef

$(GOBIN)/golangci-lint:
$(call go_install,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0)
$(call go_install,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4)

$(GOBIN)/gotestsum:
$(call go_install,gotest.tools/gotestsum@latest)
Expand Down
6 changes: 3 additions & 3 deletions modules/ollama/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ func TestRun_local(t *testing.T) {
t.Run("port-endpoint", func(t *testing.T) {
endpoint, err := ollamaContainer.PortEndpoint(ctx, testNatPort, "")
require.NoError(t, err)
require.Regexp(t, regexp.MustCompile(`^127.0.0.1:\d+$`), endpoint)
require.Regexp(t, `^127.0.0.1:\d+$`, endpoint)

endpoint, err = ollamaContainer.PortEndpoint(ctx, testNatPort, "http")
require.NoError(t, err)
require.Regexp(t, regexp.MustCompile(`^http://127.0.0.1:\d+$`), endpoint)
require.Regexp(t, `^http://127.0.0.1:\d+$`, endpoint)
})

t.Run("session-id", func(t *testing.T) {
Expand Down Expand Up @@ -392,7 +392,7 @@ func testRun_localWithCustomHost(ctx context.Context, t *testing.T, ollamaContai
t.Run("inspect", func(t *testing.T) {
inspect, err := ollamaContainer.Inspect(ctx)
require.NoError(t, err)
require.Regexp(t, regexp.MustCompile(`^local-ollama:\d+\.\d+\.\d+$`), inspect.Config.Image)
require.Regexp(t, `^local-ollama:\d+\.\d+\.\d+$`, inspect.Config.Image)

_, exists := inspect.Config.ExposedPorts[testNatPort]
require.True(t, exists)
Expand Down

0 comments on commit 08bc960

Please sign in to comment.