Skip to content

Commit 6d67e41

Browse files
committed
Move private registry sources out of util package
1 parent 29930fa commit 6d67e41

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

go/extractor/registries/BUILD.bazel

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package util
1+
package registries
22

33
import (
44
"encoding/json"

go/extractor/util/registryproxy_test.go renamed to go/extractor/registries/registryproxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package util
1+
package registries
22

33
import (
44
"testing"

go/extractor/toolchain/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/extractor/toolchain/toolchain.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"path/filepath"
1111
"strings"
1212

13+
"github.com/github/codeql-go/extractor/registries"
1314
"github.com/github/codeql-go/extractor/util"
1415
)
1516

@@ -140,7 +141,7 @@ func SupportsWorkspaces() bool {
140141
// Constructs a `*exec.Cmd` for `go` with the specified arguments.
141142
func GoCommand(arg ...string) *exec.Cmd {
142143
cmd := exec.Command("go", arg...)
143-
util.ApplyProxyEnvVars(cmd)
144+
registries.ApplyProxyEnvVars(cmd)
144145
return cmd
145146
}
146147

go/extractor/util/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)