Skip to content

Commit

Permalink
finally owrks
Browse files Browse the repository at this point in the history
  • Loading branch information
xytan0056 committed May 18, 2022
1 parent e808886 commit c62b222
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 206 deletions.
5 changes: 4 additions & 1 deletion go/tools/builders/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ go_test(
"stdliblist_test.go",
],
data = ["@go_sdk//:files"],
rundir = ".",
# -sdk in stdliblist needs to be a relative path, otherwise it breaks
# assumptions of cloning go_sdk, thus we need to set up the test in a
# way that go_sdk is under the directory where test is run.
rundir = "..",
deps = ["//go/tools/bazel"],
)

Expand Down
2 changes: 1 addition & 1 deletion go/tools/builders/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type env struct {
// configured with those flags.
func envFlags(flags *flag.FlagSet) *env {
env := &env{}
flags.StringVar(&env.sdk, "sdk", "", "Path to the Go SDK.")
flags.StringVar(&env.sdk, "sdk", "", "Relative path to the Go SDK.")
flags.Var(&tagFlag{}, "tags", "List of build tags considered true.")
flags.StringVar(&env.installSuffix, "installsuffix", "", "Standard library under GOROOT/pkg")
flags.BoolVar(&env.verbose, "v", false, "Whether subprocess command lines should be printed")
Expand Down
Loading

0 comments on commit c62b222

Please sign in to comment.