Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: v2.13.2
version: v2.14.0

# The rest of `task lint`: project cops and go.mod tidiness.
- name: Project cops
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

ARG GO_VERSION="1.27.0"
ARG GO_VERSION="1.27.2"
ARG ALPINE_VERSION="3.23"
ARG XX_VERSION="1.9.0"

Expand Down
4 changes: 2 additions & 2 deletions cmd/root/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,13 @@ func allAgentsHarnessBacked(cfg *latest.Config) bool {
func claudeHarnessIssue(ref string, status codingharness.ClaudeCLIStatus) string {
switch status.State {
case codingharness.ClaudeStateNotInstalled:
return fmt.Sprintf("%s uses a claude-code harness but the `claude` CLI was not found in PATH; install Claude Code (%s) and log in with `%s`",
return fmt.Sprintf("%s uses a claude-code harness but the `claude` CLI was not found in PATH; install Claude Code (%s) and log in with %#q",
ref, codingharness.ClaudeInstallDocsURL, codingharness.ClaudeLoginCommand)
case codingharness.ClaudeStateAuthCheckFailed:
return fmt.Sprintf("%s uses a claude-code harness but the Claude Code login could not be verified (%s); run `claude auth status` as the same OS user and environment that run docker-agent",
ref, status.Detail)
case codingharness.ClaudeStateUnauthenticated:
return fmt.Sprintf("%s uses a claude-code harness but the `claude` CLI is not logged in; run `%s` as the same OS user and environment that run docker-agent",
return fmt.Sprintf("%s uses a claude-code harness but the `claude` CLI is not logged in; run %#q as the same OS user and environment that run docker-agent",
ref, codingharness.ClaudeLoginCommand)
default:
return ""
Expand Down
4 changes: 2 additions & 2 deletions cmd/root/doctor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func TestDoctorCommand_ClaudeHarnessNotInstalled(t *testing.T) {
assert.Contains(t, output, "Claude Code harness")
assert.Contains(t, output, "not found in PATH")
assert.Contains(t, output, codingharness.ClaudeInstallDocsURL)
assert.Contains(t, output, "claude auth login --claudeai")
assert.Contains(t, output, "log in with `claude auth login --claudeai`")
}

func TestDoctorCommand_ClaudeHarnessUnauthenticated(t *testing.T) {
Expand All @@ -475,7 +475,7 @@ func TestDoctorCommand_ClaudeHarnessUnauthenticated(t *testing.T) {

require.Error(t, err)
assert.Contains(t, output, "Status: installed (2.1.210 (Claude Code)), not logged in")
assert.Contains(t, output, "claude auth login --claudeai")
assert.Contains(t, output, "run `claude auth login --claudeai`")
assert.Contains(t, output, "same OS user and environment")
}

Expand Down
2 changes: 1 addition & 1 deletion docs/community/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _Docker Agent is open source. Here's how to set up your development environment
- [Go 1.27](https://go.dev/dl/) or higher
- API key(s) for your chosen AI provider
- [Task](https://taskfile.dev/installation/)
- [golangci-lint](https://golangci-lint.run/docs/welcome/install/local/)
- [golangci-lint 2.14.0](https://golangci-lint.run/docs/welcome/install/local/) or higher

> [!NOTE]
> **Platform Support**
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/docker/docker-agent

go 1.27

toolchain go1.27.0
toolchain go1.27.2

require (
charm.land/bubbles/v2 v2.2.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/protect/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func aeadSeal(key, data, aad []byte) ([]byte, error) {
if err != nil {
return nil, err
}
return gcm.Seal(nil, nil, data, aad), nil
return gcm.Seal(nil, nil, data, aad), nil //nolint:gosec // G407: NewGCMWithRandomNonce generates the nonce internally.
}

func aeadOpen(key, blob, aad []byte) ([]byte, error) {
Expand Down
Loading