Skip to content

Commit 95a2331

Browse files
committed
chore: update golang version and dependencies
1 parent b5a38fa commit 95a2331

File tree

7 files changed

+1119
-173
lines changed

7 files changed

+1119
-173
lines changed

.vscode/configurationCache.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"buildTargets":[".PHONY","/Users/christian/go/bin/promu","all","common-all","common-build","common-check_license","common-deps","common-docker","common-docker-amd64","common-docker-manifest","common-docker-publish","common-docker-publish-amd64","common-docker-tag-latest","common-docker-tag-latest-amd64","common-format","common-lint","common-staticcheck","common-style","common-tarball","common-test","common-test-short","common-unused","common-vet","promu","proto","style","update-go-deps"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}

.vscode/dryrun.log

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
make --dry-run --always-make --keep-going --print-directory
2+
make: Entering directory `/Users/christian/git/github.com/slashdevops/aws_cloudwatch_exporter'
3+
echo ">> checking code style"
4+
fmtRes=$(gofmt -d $(find . -path ./vendor -prune -o -name '*.go' -print)); \
5+
if [ -n "${fmtRes}" ]; then \
6+
echo "gofmt checking failed!"; echo "${fmtRes}"; echo; \
7+
echo "Please ensure you are using $(go version) for formatting code."; \
8+
exit 1; \
9+
fi
10+
echo ">> checking license header"
11+
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './vendor/*') ; do awk 'NR<=3' $file | grep -Eq "(Copyright|generated|GENERATED)" || echo $file; done); \
12+
if [ -n "${licRes}" ]; then \
13+
echo "license header checking failed:"; echo "${licRes}"; \
14+
exit 1; \
15+
fi
16+
echo ">> running check for unused/missing packages in go.mod"
17+
GO111MODULE=on go mod tidy
18+
git diff --exit-code -- go.sum go.mod
19+
20+
curl -s -L https://github.com/prometheus/promu/releases/download/v0.5.0/promu-0.5.0.darwin-arm64.tar.gz | tar -xvzf - -C /var/folders/yc/w7gzxwfd2wg4d8s043jvcrqr0000gn/T/tmp.2diI8mDq
21+
mkdir -p /Users/christian/go/bin
22+
cp /var/folders/yc/w7gzxwfd2wg4d8s043jvcrqr0000gn/T/tmp.2diI8mDq/promu-0.5.0.darwin-arm64/promu /Users/christian/go/bin/promu
23+
rm -r /var/folders/yc/w7gzxwfd2wg4d8s043jvcrqr0000gn/T/tmp.2diI8mDq
24+
25+
echo ">> building binaries"
26+
27+
GO111MODULE=on /Users/christian/go/bin/promu build --prefix /Users/christian/git/github.com/slashdevops/aws_cloudwatch_exporter
28+
echo ">> running all tests"
29+
GO111MODULE=on go test ./...
30+
make: Leaving directory `/Users/christian/git/github.com/slashdevops/aws_cloudwatch_exporter'
31+

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"makefile.extensionOutputFolder": "./.vscode"
3+
}

0 commit comments

Comments
 (0)