Skip to content

Commit

Permalink
Bump github.com/Masterminds/semver/v3 from 3.2.1 to 3.3.0 (#37)
Browse files Browse the repository at this point in the history
* Bump github.com/Masterminds/semver/v3 from 3.2.1 to 3.3.0

Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/Masterminds/semver/releases)
- [Changelog](https://github.com/Masterminds/semver/blob/master/CHANGELOG.md)
- [Commits](Masterminds/semver@v3.2.1...v3.3.0)

---
updated-dependencies:
- dependency-name: github.com/Masterminds/semver/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix broken ci

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nhatthm <thmnhat@gmail.com>
  • Loading branch information
dependabot[bot] and nhatthm authored Sep 16, 2024
1 parent 4b63e97 commit 36aaaa6
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 32 deletions.
16 changes: 6 additions & 10 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,25 @@ linters-settings:
linters:
enable-all: true
disable:
- deadcode
- depguard
- exhaustivestruct
- execinquery
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- gci
- gochecknoglobals
- golint
- gomnd
- ifshort
- interfacer
- ireturn
- lll
- maligned
- mnd
- nonamedreturns
- nosnakecase
- nolintlint # https://github.com/golangci/golangci-lint/issues/3063
- paralleltest
- scopelint
- structcheck
- perfsprint
- tagalign
- tagliatelle
- testpackage
- varcheck
- varnamelen
- wrapcheck

Expand All @@ -54,9 +48,11 @@ issues:
exclude-rules:
- linters:
- dupl
- err113
- funlen
- goconst
- goerr113
- gomnd
- mnd
- noctx
path: "_test.go"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ APP ?= ligaturizer

PYTHON_VERSION ?= 3.11
ALPINE_VERSION ?= 3.19
GOLANGCI_LINT_VERSION ?= v1.55.2
GOLANGCI_LINT_VERSION ?= v1.61.0

GO ?= go
GOLANGCI_LINT ?= $(shell go env GOPATH)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
Expand Down
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module go.nhat.io/ligaturizer

go 1.22
go 1.23

toolchain go1.23.0

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/Masterminds/semver/v3 v3.3.0
github.com/bool64/ctxd v1.2.1
github.com/bool64/zapctxd v1.1.1
github.com/fatih/color v1.17.0
Expand All @@ -27,7 +29,7 @@ require (
go.nhat.io/cpy/v3 v3.11.1 // indirect
go.nhat.io/once v0.2.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0=
github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/bool64/ctxd v1.2.1 h1:hARFteq0zdn4bwfmxLhak3fXFuvtJVKDH2X29VV/2ls=
github.com/bool64/ctxd v1.2.1/go.mod h1:ZG6QkeGVLTiUl2mxPpyHmFhDzFZCyocr9hluBV3LYuc=
github.com/bool64/dev v0.2.34 h1:P9n315P8LdpxusnYQ0X7MP1CZXwBK5ae5RZrd+GdSZE=
Expand Down Expand Up @@ -67,10 +67,10 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
Expand Down
4 changes: 2 additions & 2 deletions internal/app/ligaturize.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ligaturizeCommand(logger *ctxd.Logger) *cobra.Command {
Use: "ligaturizer [flags] input-font-file",
Short: "Ligaturize a font",
SilenceUsage: true,
Args: func(cmd *cobra.Command, args []string) error {
Args: func(_ *cobra.Command, args []string) error {
if l := len(args); l == 0 {
return errInputFontFileNotSpecified
} else if l > 1 {
Expand All @@ -50,7 +50,7 @@ func ligaturizeCommand(logger *ctxd.Logger) *cobra.Command {

return nil
},
PreRunE: func(cmd *cobra.Command, args []string) error {
PreRunE: func(*cobra.Command, []string) error {
if ligaturizerCfg.LigatureFontFile == "" && ligaturizerCfg.LigatureFontDir == "" {
return errLigatureFontFileAndDirNotSpecified
}
Expand Down
14 changes: 7 additions & 7 deletions internal/app/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func runVersion(stdout, stderr io.Writer, showFull bool) {
rev = info.Revision.Short()
}

_, _ = fmt.Fprintf(stdout, "%s (rev: %s; %s; %s/%s)\n",
_, _ = fmt.Fprintf(stdout, "%s (rev: %s; %s; %s/%s)\n", //nolint: errcheck
info.Version,
rev,
info.GoVersion,
Expand All @@ -45,13 +45,13 @@ func runVersion(stdout, stderr io.Writer, showFull bool) {
return
}

_, _ = fmt.Fprintln(stderr)
_, _ = fmt.Fprintf(stderr, "build user: %s\n", info.BuildUser)
_, _ = fmt.Fprintf(stderr, "build date: %s\n", info.BuildDate)
_, _ = fmt.Fprintln(stderr)
_, _ = fmt.Fprintln(stderr, "dependencies:")
_, _ = fmt.Fprintln(stderr) //nolint: errcheck
_, _ = fmt.Fprintf(stderr, "build user: %s\n", info.BuildUser) //nolint: errcheck
_, _ = fmt.Fprintf(stderr, "build date: %s\n", info.BuildDate) //nolint: errcheck
_, _ = fmt.Fprintln(stderr) //nolint: errcheck
_, _ = fmt.Fprintln(stderr, "dependencies:") //nolint: errcheck

for _, dep := range info.Dependencies {
_, _ = fmt.Fprintf(stderr, " %s: %s\n", dep.Path, dep.Version)
_, _ = fmt.Fprintf(stderr, " %s: %s\n", dep.Path, dep.Version) //nolint: errcheck
}
}
1 change: 0 additions & 1 deletion internal/ligaturizer/char_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func TestChar_UnmarshalText(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.scenario, func(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 1 addition & 1 deletion internal/ligaturizer/firacode/v3/ligaturizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (l *Ligaturizer) addLigature(
prevs := make([]string, 0, i)
nexts := chars.Names()[i+1:]

for j := 0; j < i; j++ {
for j := range i {
prevs = append(prevs, getCharName(j))
}

Expand Down

0 comments on commit 36aaaa6

Please sign in to comment.