Skip to content

Commit

Permalink
Upgrade to pongo2 v6
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Jun 3, 2023
1 parent fd1b0c2 commit ec236e1
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 68 deletions.
20 changes: 12 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ output:
linters:
enable-all: true
disable:
# Deprecated
- golint
- ireturn
- interfacer
- exhaustivestruct
- maligned
- scopelint
# Doesn't work
- promlinter
- revive # Revisit in future
# Not used
- paralleltest
- nlreturn
Expand All @@ -25,6 +19,8 @@ linters:
- gofumpt
- gci
- exhaustruct # ultimately too noisy for most coding
- depguard
- dupword
# This one is just infuriating, produces a lot of warnings, and doesn't matter.
- godot
# These all stopped working suddenly due to a non-existent compilation error.
Expand All @@ -39,7 +35,15 @@ linters:
# Deprecated
- nosnakecase # deprecated
- ifshort # deprecated

- deadcode # Considered abandoned by golangci-lint as of 1.53.x
- varcheck # Considered abandoned by golangci-lint as of 1.53.x
- structcheck # Considered abandoned by golangci-lint as of 1.53.x
- golint
- ireturn
- interfacer
- exhaustivestruct
- maligned
- scopelint
issues:
exclude-rules:
- path: _test\.go
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module github.com/wrouesnel/p2cli

go 1.18
go 1.20

require (
github.com/flosch/pongo2/v4 v4.0.2
github.com/pelletier/go-toml v1.9.5
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/alecthomas/kong v0.7.0
github.com/flosch/pongo2/v6 v6.0.0
github.com/integralist/go-findroot v0.0.0-20160518114804-ac90681525dc
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/magefile/mage v1.14.0
Expand All @@ -26,8 +26,8 @@ require (
github.com/dsnet/compress v0.0.1 // indirect
github.com/frankban/quicktest v1.14.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/nwaples/rardecode v1.1.3 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
Expand Down
23 changes: 5 additions & 18 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
github.com/alecthomas/assert/v2 v2.1.0 h1:tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0=
github.com/alecthomas/kong v0.7.0 h1:YIjJUiR7AcmHxL87UlbPn0gyIGwl4+nYND0OQ4ojP7k=
github.com/alecthomas/kong v0.7.0/go.mod h1:n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U=
github.com/alecthomas/repr v0.1.0 h1:ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q=
github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo=
github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY=
github.com/flosch/pongo2/v4 v4.0.2 h1:gv+5Pe3vaSVmiJvh/BZa82b7/00YUGm0PIyVVLop0Hw=
github.com/flosch/pongo2/v4 v4.0.2/go.mod h1:B5ObFANs/36VwxxlgKpdchIJHMvHB562PW+BWPhwZD8=
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
github.com/flosch/pongo2/v6 v6.0.0 h1:lsGru8IAzHgIAw6H2m4PCyleO58I40ow6apih0WprMU=
github.com/flosch/pongo2/v6 v6.0.0/go.mod h1:CuDpFm47R0uGGE7z13/tTlt1Y6zdxvr2RLT5LJhsHEU=
github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
github.com/integralist/go-findroot v0.0.0-20160518114804-ac90681525dc h1:4IZpk3M4m6ypx0IlRoEyEyY1gAdicWLMQ0NcG/gBnnA=
github.com/integralist/go-findroot v0.0.0-20160518114804-ac90681525dc/go.mod h1:UlaC6ndby46IJz9m/03cZPKKkR9ykeIVBBDE3UDBdJk=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand All @@ -36,8 +30,6 @@ github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo=
github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/mholt/archiver v3.1.1+incompatible h1:1dCVxuqs0dJseYEhi5pl7MYPH9zDa1wBi7mF09cbNkU=
github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/nwaples/rardecode v1.1.3 h1:cWCaZwfM5H7nAD6PyEdcVnczzV8i/JtotnyW/dD9lEc=
github.com/nwaples/rardecode v1.1.3/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
Expand All @@ -46,7 +38,6 @@ github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9F
github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
Expand All @@ -55,28 +46,24 @@ github.com/samber/lo v1.33.0 h1:2aKucr+rQV6gHpY3bpeZu69uYoQOzVhGT3J22Op6Cjk=
github.com/samber/lo v1.33.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M=
github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo=
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI=
go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY=
go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY=
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 h1:3MTrJm4PyNL9NBqvYDSj3DHl46qQakyfqfWo4jgfaEM=
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U=
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/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=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
Expand Down
34 changes: 21 additions & 13 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"math/bits"
"os"
"os/exec"
Expand Down Expand Up @@ -79,6 +78,8 @@ var binRootName = func() string {
}()

// dockerImageName is set to the name of the directory by default.
//
//nolint:unused,varcheck
var dockerImageName = func() string {
return binRootName
}()
Expand Down Expand Up @@ -168,7 +169,7 @@ var goCmds []string

// Function to calculate the version symbol
var versionSymbol = func() string {
gomodBytes := lo.Must(ioutil.ReadFile("go.mod"))
gomodBytes := lo.Must(os.ReadFile("go.mod"))
parsedGoMod := lo.Must(modfile.ParseLax("go.mod", gomodBytes, nil))
return fmt.Sprintf("%s/version.Version", parsedGoMod.Module.Mod.Path)
}
Expand Down Expand Up @@ -384,7 +385,7 @@ func init() {
goCmds = func() []string {
results := []string{}

finfos, err := ioutil.ReadDir(cmdDir)
finfos, err := os.ReadDir(cmdDir)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -479,7 +480,7 @@ func Tools() (err error) {

// golangci-lint don't want to support if it's not a binary release, so
// don't go-install.
if berr := toolBuild("static", []string{"", "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.48.0"},
if berr := toolBuild("static", []string{"", "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.1"},
[]string{"gocovmerge", "github.com/wadey/gocovmerge@latest"}); berr != nil {
return berr
}
Expand Down Expand Up @@ -563,9 +564,9 @@ func LintersBisect() error {
// Annoyingly, we have to override .golangci.yml to allow us to pick linters
// one by one.
golangCi := make(map[string]interface{})
_ = yaml.Unmarshal(must(ioutil.ReadFile(".golangci.yml")), golangCi)
_ = yaml.Unmarshal(must(os.ReadFile(".golangci.yml")), golangCi)
delete(golangCi, "linters")
tempConfig, err := ioutil.TempFile("", ".golangci.*.yml")
tempConfig, err := os.CreateTemp("", ".golangci.*.yml")
if err != nil {
return errors.Wrap(err, "LintersBisect: TempFile failed")
}
Expand Down Expand Up @@ -597,7 +598,7 @@ func LintersBisect() error {
// fmt runs golangci-lint with the formatter options.
func formattingLinter(doFixes bool) error {
mg.Deps(Tools)
args := []string{"run", "--no-config", "--disable-all", "--enable=gofmt", "--enable=goimports", "--enable=godot"}
args := []string{"run", "--no-config", "--disable-all", "--enable=gofmt", "--enable=goimports", "--enable=godot", "--enable=tagalign"}
if doFixes {
args = append(args, "--fix")
}
Expand All @@ -616,7 +617,7 @@ func Fmt() error {

func listCoverageFiles() ([]string, error) {
result := []string{}
finfos, derr := ioutil.ReadDir(coverageDir)
finfos, derr := os.ReadDir(coverageDir)
if derr != nil {
return result, derr
}
Expand Down Expand Up @@ -674,17 +675,19 @@ func Coverage() error {
if err != nil {
return err
}
return ioutil.WriteFile(constCoverFile, []byte(mergedCoverage), os.FileMode(0777))
return os.WriteFile(constCoverFile, []byte(mergedCoverage), os.FileMode(0777))
}

// All runs a full suite suitable for CI
//
//nolint:unparam
func All() error {
mg.SerialDeps(Style, Lint, Test, Coverage, Release)
return nil
}

// GithubReleaseMatrix emits a line to setup build matrix jobs for release builds.
//
//nolint:unparam
func GithubReleaseMatrix() error {
output := make([]string, 0, len(platforms))
Expand Down Expand Up @@ -765,6 +768,7 @@ func Binary() error {
}

// doReleaseBin handles the deferred building of an actual release binary.
//
//nolint:gocritic
func doReleaseBin(OSArch string) func() error {
platform, ok := platformsLookup[OSArch]
Expand All @@ -782,6 +786,7 @@ func doReleaseBin(OSArch string) func() error {
}

// ReleaseBin builds cross-platform release binaries under the bin/ directory.
//
//nolint:gocritic
func ReleaseBin(OSArch string) error {
return doReleaseBin(OSArch)()
Expand All @@ -798,6 +803,7 @@ func ReleaseBinAll() error {
}

// Release builds release archives under the release/ directory.
//
//nolint:gocritic
func doRelease(OSArch string) func() error {
platform, ok := platformsLookup[OSArch]
Expand Down Expand Up @@ -853,6 +859,7 @@ func PlatformTargets() error {
}

// Release a binary archive for a specific platform
//
//nolint:gocritic
func Release(OSArch string) error {
return doRelease(OSArch)()
Expand Down Expand Up @@ -885,6 +892,7 @@ func Clean() error {
}

// Debug prints the value of internal state variables
//
//nolint:unparam
func Debug() error {
fmt.Println("Source Files:", goSrc)
Expand All @@ -904,7 +912,7 @@ func Debug() error {
func Autogen() error {
fmt.Println("Installing git hooks in local repository...")

for _, fname := range must(ioutil.ReadDir(gitHookDir)) {
for _, fname := range must(os.ReadDir(gitHookDir)) {
hookName := fname.Name()
if !fname.IsDir() {
continue
Expand All @@ -914,7 +922,7 @@ func Autogen() error {
repoHookPath := path.Join(gitHookDir, fname.Name())

scripts := []string{}
for _, scriptName := range must(ioutil.ReadDir(repoHookPath)) {
for _, scriptName := range must(os.ReadDir(repoHookPath)) {
if scriptName.IsDir() {
continue
}
Expand All @@ -923,7 +931,7 @@ func Autogen() error {

scripts = append(scripts, relHookPath)

data, err := ioutil.ReadFile(gitHookPath)
data, err := os.ReadFile(gitHookPath)
if err != nil {
data = []byte("#!/bin/bash\n")
}
Expand Down Expand Up @@ -974,7 +982,7 @@ func Autogen() error {
updatedScript = append(updatedScript, scriptPackage...)
updatedScript = append(updatedScript, splitHook[tailAt:]...)

err = ioutil.WriteFile(gitHookPath, []byte(strings.Join(updatedScript, "\n")),
err = os.WriteFile(gitHookPath, []byte(strings.Join(updatedScript, "\n")),
os.FileMode(0755))
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/entrypoint/custom_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/wrouesnel/p2cli/pkg/fileconsts"

"github.com/flosch/pongo2/v4"
"github.com/flosch/pongo2/v6"
)

// This noop filter is registered in place of custom filters which otherwise
Expand Down
Loading

0 comments on commit ec236e1

Please sign in to comment.