Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18 # https://golang.org/dl/
go-version: 1.19 # https://golang.org/dl/
- name: Docker Login
uses: docker/login-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18 # https://golang.org/dl/
go-version: 1.19 # https://golang.org/dl/
- name: Hadolint
uses: hadolint/hadolint-action@v2.1.0
- name: Goreleaser Check
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/loomhq/lock-exec

go 1.18
go 1.19

require (
github.com/aws/aws-sdk-go-v2 v1.16.8
Expand Down
2 changes: 1 addition & 1 deletion lock/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// of the command and the command error. If the unlock step fails the lock expires after 24 hours.
func (c *Client) Run(ctx context.Context, key, command string) error {
// use context.Background here so that unlock runs even if the context is cancelled
defer c.Unlock(context.Background(), key) //nolint:errcheck,contextcheck
defer c.Unlock(context.Background(), key) //nolint:errcheck

err := c.Lock(ctx, key, time.Hour*24) //nolint:gomnd
if err != nil {
Expand Down