From ebf1a6077186e9a441567ba313ca2b10481e97b4 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Mon, 17 Nov 2025 13:32:29 +0100 Subject: [PATCH] Fixup getopt requires Use the correct path and tag for the `github.com/pborman/getopt/v2` requirement. * Update and pin GitHub actions for supply chain security. * Enable dependabot. Signed-off-by: SuperQ --- .github/workflows/test.yml | 10 +++++----- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ef130c..eaa4c06 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.x @@ -19,7 +19,7 @@ jobs: run: go vet ./... - name: staticcheck - uses: dominikh/staticcheck-action@v1.3.0 + uses: dominikh/staticcheck-action@288b4e28bae83c59f35f73651aeb5cab746a06fc # v1.4.0 with: install-go: false @@ -31,12 +31,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v5 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: ${{ matrix.go-version }} - name: Check out code - uses: actions/checkout@v4 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Test run: go test -race ./... diff --git a/go.mod b/go.mod index 80bb31e..b6d6c33 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/oklog/ulid/v2 go 1.15 -require github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30 +require github.com/pborman/getopt/v2 v2.1.0 diff --git a/go.sum b/go.sum index a480d79..b94bce3 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30 h1:BHT1/DKsYDGkUgQ2jmMaozVcdk+sVfz0+1ZJq4zkWgw= -github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= +github.com/pborman/getopt/v2 v2.1.0 h1:eNfR+r+dWLdWmV8g5OlpyrTYHkhVNxHBdN2cCrJmOEA= +github.com/pborman/getopt/v2 v2.1.0/go.mod h1:4NtW75ny4eBw9fO1bhtNdYTlZKYX5/tBLtsOpwKIKd0=