Skip to content

Commit

Permalink
Merge master into ds_16102023_alias_bump
Browse files Browse the repository at this point in the history
  • Loading branch information
d-stefanovic committed Oct 18, 2023
2 parents 53c3dbb + 8a8b9c9 commit 86f7f82
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.20.x
- name: Check out repository code
uses: actions/checkout@v2
- name: Install gotestsum
Expand Down
6 changes: 3 additions & 3 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ blocks:
jobs:
- name: Build cache CLI
commands:
- sem-version go 1.18
- sem-version go 1.20
- "export GOPATH=~/go"
- "export PATH=/home/semaphore/go/bin:$PATH"
- checkout
Expand All @@ -32,7 +32,7 @@ blocks:
- artifact push workflow bin/windows/cache.exe -d bin/windows/cache.exe
- name: Build sem-context CLI
commands:
- sem-version go 1.17
- sem-version go 1.20
- "export GOPATH=~/go"
- "export PATH=/home/semaphore/go/bin:$PATH"
- checkout
Expand Down Expand Up @@ -542,7 +542,7 @@ blocks:
value: "on"
prologue:
commands:
- sem-version go 1.18
- sem-version go 1.20
- checkout && cd cache-cli
jobs:
- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion cache-cli/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18
FROM golang:1.20

RUN go install gotest.tools/gotestsum@latest
RUN mkdir /root/.ssh
Expand Down
2 changes: 1 addition & 1 deletion cache-cli/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/semaphoreci/toolbox/cache-cli

go 1.18
go 1.20

require (
cloud.google.com/go/storage v1.30.1
Expand Down
3 changes: 2 additions & 1 deletion cache-cli/pkg/archive/native_archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ func (a *NativeArchiver) Decompress(src string) (string, error) {
}

// #nosec
if _, err := io.Copy(outFile, tarReader); err != nil {
_, err = io.Copy(outFile, tarReader)
if err != nil {
log.Errorf("Error writing to file '%s': %v", header.Name, err)
hadError = true
_ = outFile.Close()
Expand Down
3 changes: 2 additions & 1 deletion cache-cli/pkg/files/checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ import (
"os"
)

// #nosec
func GenerateChecksum(filePath string) (string, error) {
// #nosec
file, err := os.Open(filePath)
if err != nil {
return "", err
}

defer file.Close()

// #nosec
hash := md5.New()
if _, err := io.Copy(hash, file); err != nil {
return "", err
Expand Down
6 changes: 3 additions & 3 deletions release/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

set -euo pipefail

ARTIFACT_CLI_VERSION="v0.6.2"
ARTIFACT_CLI_VERSION="v0.6.3"
WHEN_CLI_VERSION="v1.0.5"
SPC_CLI_VERSION="v1.9.5"
TEST_RESULTS_CLI_VERSION="v0.6.8"
SPC_CLI_VERSION="v1.9.6"
TEST_RESULTS_CLI_VERSION="v0.6.9"

ARTIFACT_CLI_URL="https://github.com/semaphoreci/artifact/releases/download/$ARTIFACT_CLI_VERSION"
SPC_CLI_URL="https://github.com/semaphoreci/spc/releases/download/$SPC_CLI_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion sem-context/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17
FROM golang:1.20

RUN go get gotest.tools/gotestsum

Expand Down
2 changes: 1 addition & 1 deletion sem-context/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/semaphoreci/toolbox/sem-context

go 1.17
go 1.20

require github.com/spf13/cobra v1.5.0

Expand Down

0 comments on commit 86f7f82

Please sign in to comment.