Skip to content

Commit

Permalink
Merge pull request #546 from Roasbeef/loop-scope-fix
Browse files Browse the repository at this point in the history
build: prep for Go 1.22 by using GOEXPERIMENT=loopvar for tests
  • Loading branch information
Roasbeef authored Oct 4, 2023
2 parents affe4f9 + 79c0a23 commit 5373ccc
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: git checkout
uses: actions/checkout@v3

- name: Setup go environment
uses: ./.github/actions/setup-go

- name: Run go mod tidy
run: make mod-check

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ MIGRATE_BIN := $(GO_BIN)/migrate

COMMIT := $(shell git describe --tags --dirty)

GOBUILD := GO111MODULE=on go build -v
GOINSTALL := GO111MODULE=on go install -v
GOTEST := GO111MODULE=on go test
GOBUILD := GOEXPERIMENT=loopvar GO111MODULE=on go build -v
GOINSTALL := GOEXPERIMENT=loopvar GO111MODULE=on go install -v
GOTEST := GOEXPERIMENT=loopvar GO111MODULE=on go test
GOMOD := GO111MODULE=on go mod

GOLIST := go list -deps $(PKG)/... | grep '$(PKG)'
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lightninglabs/taproot-assets

go 1.19
go 1.21

require (
github.com/btcsuite/btcd v0.23.5-0.20230905170901-80f5a0ffdf36
Expand Down
Loading

0 comments on commit 5373ccc

Please sign in to comment.