Skip to content

Commit db3065b

Browse files
authored
Merge pull request #3 from apiiro/yoel/upgradeGoLang1_20
Set Go lang to 1.20
2 parents 32ca7d8 + dc8802b commit db3065b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ endif
1616
GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -o bin/$(BINARY_NAME)-$(shell $(GOCMD) run . --version | cut -d" " -f 3)-osx .
1717

1818
build-linux:
19-
docker run --rm -v $(shell pwd):/app -w /app golang:alpine /bin/sh -c "GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -o bin/$(BINARY_NAME)-$(shell $(GOCMD) run . --version | cut -d" " -f 3)-linux ."
19+
docker run --rm -v $(shell pwd):/app -w /app golang:1.20-alpine /bin/sh -c "GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -o bin/$(BINARY_NAME)-$(shell $(GOCMD) run . --version | cut -d" " -f 3)-linux ."
2020

2121
clean:
2222
rm -rf ./bin

calculate/calculate_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"code-complexity/options"
55
"code-complexity/test_resources"
66
"io/fs"
7-
"io/ioutil"
87
"math"
98
"os"
109
"path/filepath"
@@ -51,7 +50,7 @@ func touch(filePath string) {
5150
func TestIncludeExcludePatterns(t *testing.T) {
5251
r := assert.New(t)
5352

54-
basePath, err := ioutil.TempDir("", "")
53+
basePath, err := os.MkdirTemp("", "")
5554
if err != nil {
5655
panic(err)
5756
}
@@ -125,7 +124,7 @@ func TestEncodings(t *testing.T) {
125124
}
126125
sourcePath := filepath.Join(wdPath, "..", "test_resources", "encoding")
127126

128-
basePath, err := ioutil.TempDir("", "")
127+
basePath, err := os.MkdirTemp("", "")
129128
if err != nil {
130129
panic(err)
131130
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/urfave/cli/v2"
1212
)
1313

14-
const VERSION = "1.0.2"
14+
const VERSION = "1.0.3"
1515

1616
func main() {
1717
cli.AppHelpTemplate =

0 commit comments

Comments
 (0)