Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoncoen committed Feb 21, 2024
1 parent 5e7d5bc commit b8559f8
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 61 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SHELL := /bin/bash
.DEFAULT_GOAL := test

GO ?= go
export GOTOOLCHAIN := "go$(shell $(GO) version | perl -ape '$$_ = $$F[2]; s/go(.+)/$$1/')"

BIN_DIR := $(CURDIR)/.bin
export GOBIN := $(BIN_DIR)
Expand Down
1 change: 1 addition & 0 deletions cmd/scenarigo/cmd/plugin/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ func execute(ctx context.Context, wd, name string, args ...string) error {
func executeWithEnvs(ctx context.Context, envs []string, wd, name string, args ...string) error {
var stderr bytes.Buffer
cmd := exec.CommandContext(ctx, name, args...)
envs = append(envs, fmt.Sprintf("GOTOOLCHAIN=%s", goMajorMinor))
cmd.Env = append(os.Environ(), envs...)
if wd != "" {
cmd.Dir = wd
Expand Down
Loading

0 comments on commit b8559f8

Please sign in to comment.