Skip to content

Commit

Permalink
Merge pull request #3 from apiiro/yoel/upgradeGoLang1_20
Browse files Browse the repository at this point in the history
Set Go lang to 1.20
  • Loading branch information
ravyolii committed Apr 20, 2023
2 parents 32ca7d8 + dc8802b commit db3065b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif
GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -o bin/$(BINARY_NAME)-$(shell $(GOCMD) run . --version | cut -d" " -f 3)-osx .

build-linux:
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 ."
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 ."

clean:
rm -rf ./bin
Expand Down
5 changes: 2 additions & 3 deletions calculate/calculate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"code-complexity/options"
"code-complexity/test_resources"
"io/fs"
"io/ioutil"
"math"
"os"
"path/filepath"
Expand Down Expand Up @@ -51,7 +50,7 @@ func touch(filePath string) {
func TestIncludeExcludePatterns(t *testing.T) {
r := assert.New(t)

basePath, err := ioutil.TempDir("", "")
basePath, err := os.MkdirTemp("", "")
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -125,7 +124,7 @@ func TestEncodings(t *testing.T) {
}
sourcePath := filepath.Join(wdPath, "..", "test_resources", "encoding")

basePath, err := ioutil.TempDir("", "")
basePath, err := os.MkdirTemp("", "")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/urfave/cli/v2"
)

const VERSION = "1.0.2"
const VERSION = "1.0.3"

func main() {
cli.AppHelpTemplate =
Expand Down

0 comments on commit db3065b

Please sign in to comment.