Skip to content

Commit fef8964

Browse files
committed
chore: bump go version
1 parent 03aed02 commit fef8964

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

.golangci.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,35 @@ linters:
1212
enable:
1313
- asciicheck
1414
- bodyclose
15-
- deadcode
15+
- copyloopvar
1616
- errcheck
17-
- exportloopref
1817
- goconst
1918
- gofmt
2019
- goimports
2120
- gosec
2221
- gosimple
2322
- govet
2423
- ineffassign
25-
- megacheck
2624
- misspell
2725
- nolintlint
2826
- prealloc
2927
- predeclared
3028
- revive
3129
- staticcheck
32-
- structcheck
3330
- stylecheck
3431
- typecheck
3532
- unconvert
3633
- unparam
3734
- unused
38-
- varcheck
3935
- wastedassign
4036
- whitespace
4137

4238
disable:
43-
- maligned
44-
4539
# cosmetic
4640
- lll
4741
- gochecknoglobals
4842
- gochecknoinits
4943

50-
linters-settings:
51-
maligned:
52-
# print struct with more effective memory layout or not, false by default
53-
suggest-new: true
54-
5544
issues:
5645
# only reports issues that have been introduced in commits ahead of origin/master
5746
new-from-rev: origin/master

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ COPY ./ui /home/node/ui
66
WORKDIR /home/node/ui/dashboard
77
RUN BASEHREF=___UTASK_DASHBOARD_BASEHREF___ PREFIX_API_BASE_URL=___UTASK_DASHBOARD_PREFIXAPIBASEURL___ SENTRY_DSN=___UTASK_DASHBOARD_SENTRY_DSN___ make build-prod
88

9-
FROM golang:1.22
9+
FROM golang:1.23
1010

1111
COPY . /go/src/github.com/ovh/utask
1212
WORKDIR /go/src/github.com/ovh/utask

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ TEST_CMD_COV = ${TEST_CMD} -covermode=count -coverprofile=coverage.out
1010

1111
SOURCE_FILES = $(shell find ./ -type f -name "*.go" | grep -v _test.go)
1212

13-
VERSION := $(shell git describe --exact-match --abbrev=0 --tags $(git rev-list --tags --max-count=1) 2> /dev/null)
14-
ifndef VERSION
15-
VERSION = $(shell git describe --abbrev=3 --tags $(git rev-list --tags --max-count=1))-dev
13+
VERSION ?= $(shell git describe --exact-match --abbrev=0 --tags $(git rev-list --tags --max-count=1) 2> /dev/null)
14+
15+
ifeq ($(strip $(VERSION)),)
16+
VERSION := $(shell git describe --abbrev=3 --tags $(git rev-list --tags --max-count=1))-dev
1617
endif
1718

1819
LAST_COMMIT := $(shell git rev-parse HEAD)
@@ -54,7 +55,7 @@ release:
5455

5556
release-utask-lib:
5657
cd ui/dashboard/projects/utask-lib && npm version $(VERSION) --allow-same-version
57-
cd ui/dashboard && npm ci && ng build --configuration production utask-lib
58+
cd ui/dashboard && npm ci && npm run ng -- build utask-lib --configuration production
5859
npm publish ui/dashboard/dist/utask-lib --access public
5960

6061
test:

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ovh/utask
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.2.3

0 commit comments

Comments
 (0)