Skip to content

Commit a6a8a17

Browse files
renovate[bot]florianl
authored andcommitted
fix(deps): update go dependencies (open-telemetry#727)
Signed-off-by: Florian Lehner <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Florian Lehner <[email protected]>
1 parent cdcd43d commit a6a8a17

File tree

17 files changed

+2638
-47
lines changed

17 files changed

+2638
-47
lines changed

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ linters:
8787
paths:
8888
- design-docs
8989
- doc
90-
- legal
90+
- LICENSES
9191
- target
92+
- go
9293

9394
settings:
9495
goconst:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels: ["dependencies"]
8+
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly
13+
labels:
14+
- dependencies
15+
# only update HashiCorp actions, external actions managed by TSCCR
16+
allow:
17+
- dependency-name: hashicorp/*
18+
groups:
19+
github-actions-breaking:
20+
update-types:
21+
- major
22+
github-actions-backward-compatible:
23+
update-types:
24+
- minor
25+
- patch
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: go-tests
2+
3+
on: [push]
4+
5+
env:
6+
TEST_RESULTS: /tmp/test-results
7+
8+
jobs:
9+
10+
go-tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: [ 1.15.3, 1.19 ]
15+
16+
steps:
17+
- name: Setup go
18+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
19+
with:
20+
go-version: ${{ matrix.go-version }}
21+
22+
- name: Checkout code
23+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
24+
25+
- name: Create test directory
26+
run: |
27+
mkdir -p ${{ env.TEST_RESULTS }}
28+
29+
- name: Download go modules
30+
run: go mod download
31+
32+
- name: Cache / restore go modules
33+
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
34+
with:
35+
path: |
36+
~/go/pkg/mod
37+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
38+
restore-keys: |
39+
${{ runner.os }}-go-
40+
41+
# Check go fmt output because it does not report non-zero when there are fmt changes
42+
- name: Run gofmt
43+
run: |
44+
go fmt ./...
45+
files=$(go fmt ./...)
46+
if [ -n "$files" ]; then
47+
echo "The following file(s) do not conform to go fmt:"
48+
echo "$files"
49+
exit 1
50+
fi
51+
52+
# Install gotestsum with go get for 1.15.3; otherwise default to go install
53+
- name: Install gotestsum
54+
run: |
55+
GTS="gotest.tools/[email protected]"
56+
# We use the same error message prefix in either failure case, so just define it once here.
57+
ERROR="Failed to install $GTS"
58+
# First try to 'go install', if that fails try 'go get'...
59+
go install "$GTS" || go get "$GTS" || { echo "$ERROR: both 'go install' and 'go get' failed"; exit 1; }
60+
# Check that the gotestsum command was actually installed in the path...
61+
command -v gotestsum > /dev/null 2>&1 || { echo "$ERROR: gotestsum command not installed"; exit 1; }
62+
echo "OK: Command 'gotestsum' installed ($GTS)"
63+
64+
- name: Run go tests
65+
run: |
66+
PACKAGE_NAMES=$(go list ./...)
67+
gotestsum --format=short-verbose --junitfile $TEST_RESULTS/gotestsum-report.xml -- $PACKAGE_NAMES
68+
69+
# Save coverage report parts
70+
- name: Upload and save artifacts
71+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
72+
with:
73+
name: Test Results
74+
path: ${{ env.TEST_RESULTS }}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# 1.7.0 (May 24, 2024)
2+
3+
ENHANCEMENTS:
4+
5+
- Remove `reflect` dependency ([#91](https://github.com/hashicorp/go-version/pull/91))
6+
- Implement the `database/sql.Scanner` and `database/sql/driver.Value` interfaces for `Version` ([#133](https://github.com/hashicorp/go-version/pull/133))
7+
8+
INTERNAL:
9+
10+
- [COMPLIANCE] Add Copyright and License Headers ([#115](https://github.com/hashicorp/go-version/pull/115))
11+
- [COMPLIANCE] Update MPL-2.0 LICENSE ([#105](https://github.com/hashicorp/go-version/pull/105))
12+
- Bump actions/cache from 3.0.11 to 3.2.5 ([#116](https://github.com/hashicorp/go-version/pull/116))
13+
- Bump actions/checkout from 3.2.0 to 3.3.0 ([#111](https://github.com/hashicorp/go-version/pull/111))
14+
- Bump actions/upload-artifact from 3.1.1 to 3.1.2 ([#112](https://github.com/hashicorp/go-version/pull/112))
15+
- GHA Migration ([#103](https://github.com/hashicorp/go-version/pull/103))
16+
- github: Pin external GitHub Actions to hashes ([#107](https://github.com/hashicorp/go-version/pull/107))
17+
- SEC-090: Automated trusted workflow pinning (2023-04-05) ([#124](https://github.com/hashicorp/go-version/pull/124))
18+
- update readme ([#104](https://github.com/hashicorp/go-version/pull/104))
19+
20+
# 1.6.0 (June 28, 2022)
21+
22+
FEATURES:
23+
24+
- Add `Prerelease` function to `Constraint` to return true if the version includes a prerelease field ([#100](https://github.com/hashicorp/go-version/pull/100))
25+
26+
# 1.5.0 (May 18, 2022)
27+
28+
FEATURES:
29+
30+
- Use `encoding` `TextMarshaler` & `TextUnmarshaler` instead of JSON equivalents ([#95](https://github.com/hashicorp/go-version/pull/95))
31+
- Add JSON handlers to allow parsing from/to JSON ([#93](https://github.com/hashicorp/go-version/pull/93))
32+
33+
# 1.4.0 (January 5, 2022)
34+
35+
FEATURES:
36+
37+
- Introduce `MustConstraints()` ([#87](https://github.com/hashicorp/go-version/pull/87))
38+
- `Constraints`: Introduce `Equals()` and `sort.Interface` methods ([#88](https://github.com/hashicorp/go-version/pull/88))
39+
40+
# 1.3.0 (March 31, 2021)
41+
42+
Please note that CHANGELOG.md does not exist in the source code prior to this release.
43+
44+
FEATURES:
45+
- Add `Core` function to return a version without prerelease or metadata ([#85](https://github.com/hashicorp/go-version/pull/85))
46+
47+
# 1.2.1 (June 17, 2020)
48+
49+
BUG FIXES:
50+
- Prevent `Version.Equal` method from panicking on `nil` encounter ([#73](https://github.com/hashicorp/go-version/pull/73))
51+
52+
# 1.2.0 (April 23, 2019)
53+
54+
FEATURES:
55+
- Add `GreaterThanOrEqual` and `LessThanOrEqual` helper methods ([#53](https://github.com/hashicorp/go-version/pull/53))
56+
57+
# 1.1.0 (Jan 07, 2019)
58+
59+
FEATURES:
60+
- Add `NewSemver` constructor ([#45](https://github.com/hashicorp/go-version/pull/45))
61+
62+
# 1.0.0 (August 24, 2018)
63+
64+
Initial release.

0 commit comments

Comments
 (0)