Skip to content

Commit 12f19b2

Browse files
committed
bump versions : go, goreleaser, color, fsnotify, text
1 parent be2a798 commit 12f19b2

File tree

5 files changed

+49
-35
lines changed

5 files changed

+49
-35
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ name: goreleaser
44

55

66

7-
# on events
87
on:
98
push:
109
tags:
@@ -16,19 +15,23 @@ jobs:
1615
steps:
1716
-
1817
name: Checkout
19-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
2019
with:
2120
fetch-depth: 0
21+
-
22+
name: Fetch tags
23+
run: git fetch --force --tags
2224
-
2325
name: Set up Go
24-
uses: actions/setup-go@v2
26+
uses: actions/setup-go@v4
2527
with:
26-
go-version: 1.19
28+
go-version: stable
2729
-
2830
name: Run GoReleaser
29-
uses: goreleaser/goreleaser-action@v2
31+
uses: goreleaser/goreleaser-action@v4
3032
with:
33+
distribution: goreleaser
3134
version: latest
32-
args: release --rm-dist
35+
args: release --clean
3336
env:
3437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# documentation at http://goreleaser.com
21
project_name: latex-fast-compile
32
before:
43
hooks:
5-
# You may remove this if you don't use go modules.
64
- go mod download
75
builds:
8-
- env:
6+
-
7+
env:
98
- CGO_ENABLED=0
109
goos:
1110
- linux
@@ -14,12 +13,18 @@ builds:
1413
ldflags:
1514
- -s -w -X main.version={{.Version}}
1615
archives:
17-
- replacements:
18-
darwin: MacOS
19-
linux: Linux
20-
windows: Windows
21-
386: 32bit
22-
amd64: 64bit
16+
-
17+
name_template: >-
18+
{{ .ProjectName }}_{{ .Version }}_
19+
{{- if eq .Os "darwin" }}MacOS
20+
{{- else if eq .Os "linux" }}Linux
21+
{{- else if eq .Os "windows" }}Windows
22+
{{- else }}{{ .Os }}
23+
{{- end }}_
24+
{{- if eq .Arch "amd64" }}64bit
25+
{{- else if eq .Arch "386" }}32bit
26+
{{- else }}{{ .Arch }}
27+
{{- end }}
2328
format_overrides:
2429
- goos: windows
2530
format: zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ After cloning this repo you can compile the sources with [goreleaser](https://gi
112112

113113
```shell
114114
git clone https://github.com/kpym/latex-fast-compile.git .
115-
goreleaser --snapshot --skip-publish --rm-dist
115+
goreleaser --snapshot --skip-publish --clean
116116
```
117117

118118
You will find the resulting binaries in the `dist/` sub-folder.

go.mod

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
module github.com/kpym/latex-fast-compile
22

3-
go 1.15
3+
go 1.20
44

55
require (
6-
github.com/fatih/color v1.10.0
7-
github.com/fsnotify/fsnotify v1.4.9
6+
github.com/fatih/color v1.15.0
7+
github.com/fsnotify/fsnotify v1.5.4
88
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
9-
golang.org/x/text v0.3.4
9+
golang.org/x/text v0.9.0
10+
)
11+
12+
require (
13+
github.com/mattn/go-colorable v0.1.13 // indirect
14+
github.com/mattn/go-isatty v0.0.17 // indirect
15+
golang.org/x/sys v0.6.0 // indirect
1016
)

go.sum

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
2-
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
3-
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
4-
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
5-
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
6-
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
7-
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
8-
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
1+
github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
2+
github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=
3+
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
4+
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
5+
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
6+
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
7+
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
8+
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
9+
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
910
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c h1:zqmyTlQyufRC65JnImJ6H1Sf7BDj8bG31EV919NVEQc=
1011
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
11-
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
12-
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
13-
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
14-
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
15-
golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc=
16-
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
17-
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
12+
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
13+
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
14+
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
15+
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
16+
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
17+
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=

0 commit comments

Comments
 (0)