File tree 4 files changed +8
-18
lines changed
4 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -12,46 +12,35 @@ linters:
12
12
enable :
13
13
- asciicheck
14
14
- bodyclose
15
- - deadcode
15
+ - copyloopvar
16
16
- errcheck
17
- - exportloopref
18
17
- goconst
19
18
- gofmt
20
19
- goimports
21
20
- gosec
22
21
- gosimple
23
22
- govet
24
23
- ineffassign
25
- - megacheck
26
24
- misspell
27
25
- nolintlint
28
26
- prealloc
29
27
- predeclared
30
28
- revive
31
29
- staticcheck
32
- - structcheck
33
30
- stylecheck
34
31
- typecheck
35
32
- unconvert
36
33
- unparam
37
34
- unused
38
- - varcheck
39
35
- wastedassign
40
36
- whitespace
41
37
42
38
disable :
43
- - maligned
44
-
45
39
# cosmetic
46
40
- lll
47
41
- gochecknoglobals
48
42
- gochecknoinits
49
43
50
- linters-settings :
51
- maligned :
52
- # print struct with more effective memory layout or not, false by default
53
- suggest-new : true
54
-
55
44
issues :
56
45
# only reports issues that have been introduced in commits ahead of origin/master
57
46
new-from-rev : origin/master
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ COPY ./ui /home/node/ui
6
6
WORKDIR /home/node/ui/dashboard
7
7
RUN BASEHREF=___UTASK_DASHBOARD_BASEHREF___ PREFIX_API_BASE_URL=___UTASK_DASHBOARD_PREFIXAPIBASEURL___ SENTRY_DSN=___UTASK_DASHBOARD_SENTRY_DSN___ make build-prod
8
8
9
- FROM golang:1.22
9
+ FROM golang:1.23
10
10
11
11
COPY . /go/src/github.com/ovh/utask
12
12
WORKDIR /go/src/github.com/ovh/utask
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ TEST_CMD_COV = ${TEST_CMD} -covermode=count -coverprofile=coverage.out
10
10
11
11
SOURCE_FILES = $(shell find ./ -type f -name "* .go" | grep -v _test.go)
12
12
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
16
17
endif
17
18
18
19
LAST_COMMIT := $(shell git rev-parse HEAD)
@@ -54,7 +55,7 @@ release:
54
55
55
56
release-utask-lib :
56
57
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
58
59
npm publish ui/dashboard/dist/utask-lib --access public
59
60
60
61
test :
Original file line number Diff line number Diff line change 1
1
module github.com/ovh/utask
2
2
3
- go 1.22
3
+ go 1.23
4
4
5
5
require (
6
6
github.com/Masterminds/sprig/v3 v3.2.3
You can’t perform that action at this time.
0 commit comments