Skip to content

Commit

Permalink
Internalise utils
Browse files Browse the repository at this point in the history
One day, utils will be cleaned up. Until then, we should reduce its exposure to the world.
  • Loading branch information
DrJosh9000 committed May 30, 2023
1 parent 2e86655 commit 4d5792f
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"github.com/buildkite/agent/v3/experiments"
"github.com/buildkite/agent/v3/hook"
"github.com/buildkite/agent/v3/internal/shellscript"
"github.com/buildkite/agent/v3/internal/utils"
"github.com/buildkite/agent/v3/kubernetes"
"github.com/buildkite/agent/v3/process"
"github.com/buildkite/agent/v3/redaction"
"github.com/buildkite/agent/v3/tracetools"
"github.com/buildkite/agent/v3/utils"
"github.com/buildkite/roko"
"github.com/buildkite/shellwords"
)
Expand Down
2 changes: 1 addition & 1 deletion clicommand/agent_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import (
"github.com/buildkite/agent/v3/experiments"
"github.com/buildkite/agent/v3/hook"
"github.com/buildkite/agent/v3/internal/agentapi"
"github.com/buildkite/agent/v3/internal/utils"
"github.com/buildkite/agent/v3/logger"
"github.com/buildkite/agent/v3/metrics"
"github.com/buildkite/agent/v3/process"
"github.com/buildkite/agent/v3/status"
"github.com/buildkite/agent/v3/tracetools"
"github.com/buildkite/agent/v3/utils"
"github.com/buildkite/agent/v3/version"
"github.com/buildkite/shellwords"
"github.com/mitchellh/go-homedir"
Expand Down
2 changes: 1 addition & 1 deletion cliconfig/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

"github.com/buildkite/agent/v3/utils"
"github.com/buildkite/agent/v3/internal/utils"
)

type File struct {
Expand Down
2 changes: 1 addition & 1 deletion cliconfig/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"time"

"github.com/buildkite/agent/v3/internal/utils"
"github.com/buildkite/agent/v3/logger"
"github.com/buildkite/agent/v3/utils"
"github.com/oleiade/reflections"
"github.com/urfave/cli"
)
Expand Down
2 changes: 1 addition & 1 deletion hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"

"github.com/buildkite/agent/v3/bootstrap/shell"
"github.com/buildkite/agent/v3/utils"
"github.com/buildkite/agent/v3/internal/utils"
)

// Find returns the absolute path to the best matching hook file in a path, or
Expand Down
2 changes: 1 addition & 1 deletion hook/scriptwrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/buildkite/agent/v3/bootstrap/shell"
"github.com/buildkite/agent/v3/env"
"github.com/buildkite/agent/v3/internal/shellscript"
"github.com/buildkite/agent/v3/utils"
"github.com/buildkite/agent/v3/internal/utils"
)

const (
Expand Down
1 change: 0 additions & 1 deletion utils/doc.go → internal/utils/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Package utils provides some file- and filepath-helper functions.
//
// It is intended for internal use by buildkite-agent only.
// TODO: `utils` is too vague. Find a better name for this package.
package utils
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4d5792f

Please sign in to comment.