Skip to content

Commit cdbb624

Browse files
authored
update modules and lint (#40)
also update go version to 1.22
1 parent eb5cc9d commit cdbb624

34 files changed

+123
-112
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v4
1414
with:
15-
go-version: '1.20'
15+
go-version: '1.22'
1616

1717
- name: make verification
1818
run: make verifiers

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.21
20+
go-version: 1.22
2121

2222
- name: Login to Docker Hub
2323
uses: docker/login-action@v3
@@ -26,9 +26,10 @@ jobs:
2626
password: ${{ secrets.DOCKERHUB_TOKEN }}
2727

2828
- name: Run GoReleaser
29-
uses: goreleaser/goreleaser-action@v2
29+
uses: goreleaser/goreleaser-action@v6
3030
with:
31-
version: latest
31+
distribution: goreleaser # or 'goreleaser-pro'
32+
version: "~> v2" # or 'latest', 'nightly', semver
3233
args: release --parallelism 1 --clean
3334
env:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ linters-settings:
2020
locale: US
2121

2222
gofumpt:
23-
lang-version: "1.21"
24-
2523
# Choose whether or not to use the extra rules that are disabled
2624
# by default
2725
extra-rules: false

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
env:
23
- GO111MODULE=on
34
- CGO_ENABLED=0
@@ -21,7 +22,6 @@ builds:
2122

2223
archives:
2324
- format: tar.gz
24-
rlcp: true
2525
files:
2626
- README.md
2727
- LICENSE

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pb query "select * from backend" --from=1m --to=now
5151
or specifying time range in rfc3999
5252

5353
```bash
54-
pb query "select * from backend" --from=2023-01-00T01:40:00.000Z --to=2023-01-00T01:55:00.000Z
54+
pb query "select * from backend" --from=2024-01-00T01:40:00.000Z --to=2024-01-00T01:55:00.000Z
5555
```
5656

5757
You can use tools like `jq` and `grep` to further process and filter the output. Some examples:

buildscripts/checkdeps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2023 Cloudnatively Services Pvt Ltd
3+
# Copyright (c) 2024 Parseable, Inc
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by

buildscripts/cross-compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2023 Cloudnatively Services Pvt Ltd
3+
# Copyright (c) 2024 Parseable, Inc
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU Affero General Public License as published by

buildscripts/gen-ldflags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build ignore
22
// +build ignore
33

4-
// Copyright (c) 2023 Cloudnatively Services Pvt Ltd
4+
// Copyright (c) 2024 Parseable, Inc
55
//
66
// This program is free software: you can redistribute it and/or modify
77
// it under the terms of the GNU Affero General Public License as published by

cmd/about.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2023 Cloudnatively Services Pvt Ltd
1+
// Copyright (c) 2024 Parseable, Inc
22
//
33
// This program is free software: you can redistribute it and/or modify
44
// it under the terms of the GNU Affero General Public License as published by

cmd/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2023 Cloudnatively Services Pvt Ltd
1+
// Copyright (c) 2024 Parseable, Inc
22
//
33
//
44
// This program is free software: you can redistribute it and/or modify

0 commit comments

Comments
 (0)