Skip to content
Snippets Groups Projects
Verified Commit 3481cfdf authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: update packages

parent 30fc4be0
No related branches found
No related tags found
No related merge requests found
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ComposerSettings">
<execution />
</component>
<component name="accountSettings">
<option name="activeProfile" value="profile:default" />
<option name="activeRegion" value="eu-west-1" />
<option name="recentlyUsedProfiles">
<list>
<option value="profile:default" />
</list>
</option>
<option name="recentlyUsedRegions">
<list>
<option value="eu-west-1" />
</list>
</option>
</component>
</project>
\ No newline at end of file
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
# https://devenv.sh/languages/ # https://devenv.sh/languages/
# languages.nix.enable = true; # languages.nix.enable = true;
languages = { languages = {
go = { enable = true; }; go = {
enable = true;
};
}; };
......
...@@ -4,33 +4,39 @@ go 1.18 ...@@ -4,33 +4,39 @@ go 1.18
require ( require (
github.com/Masterminds/semver v1.5.0 github.com/Masterminds/semver v1.5.0
github.com/go-git/go-git/v5 v5.7.0
github.com/jessevdk/go-flags v1.5.0 github.com/jessevdk/go-flags v1.5.0
github.com/tidwall/gjson v1.14.1 github.com/tidwall/gjson v1.14.4
github.com/tidwall/sjson v1.2.5
github.com/vmware-labs/yaml-jsonpath v0.3.2 github.com/vmware-labs/yaml-jsonpath v0.3.2
golang.org/x/text v0.3.7 golang.org/x/text v0.11.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
) )
require ( require (
github.com/Microsoft/go-winio v0.4.16 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230710112148-e01326fd72eb // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960 // indirect github.com/cloudflare/circl v1.3.3 // indirect
github.com/emirpasic/gods v1.12.0 // indirect github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
github.com/go-git/gcfg v1.5.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect github.com/go-git/go-billy/v5 v5.4.1 // indirect
github.com/imdario/mergo v0.3.12 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/skeema/knownhosts v1.2.0 // indirect
github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.4 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect golang.org/x/crypto v0.11.0 // indirect
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect golang.org/x/net v0.12.0 // indirect
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect golang.org/x/sys v0.10.0 // indirect
golang.org/x/tools v0.11.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect
) )
This diff is collapsed.
package main package main
import ( import (
"os"
"golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
) )
...@@ -16,19 +13,6 @@ var ( ...@@ -16,19 +13,6 @@ var (
printer *message.Printer printer *message.Printer
) )
var cliLanguages = []language.Tag{
language.English, // en fallback
language.German, // de
}
var matcher = language.NewMatcher(cliLanguages)
var userPrefs = []language.Tag{
language.Make(os.Getenv("LANG")),
language.Make("en"),
}
func main() { func main() {
executeCommand() executeCommand()
} }
...@@ -3,15 +3,13 @@ package main ...@@ -3,15 +3,13 @@ package main
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"time" "time"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
"github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath" "github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath"
...@@ -103,11 +101,14 @@ func getVersionFromGit() (string, error) { ...@@ -103,11 +101,14 @@ func getVersionFromGit() (string, error) {
return "", err return "", err
} }
tagrefs, err := repo.Tags() tags, err := repo.Tags()
if err != nil {
return "", err
}
currentVersion, _ := semver.NewVersion("0.1.0") currentVersion, _ := semver.NewVersion("0.1.0")
err = tagrefs.ForEach(func(t *plumbing.Reference) error { err = tags.ForEach(func(t *plumbing.Reference) error {
version, err := semver.NewVersion(t.Name().Short()) version, err := semver.NewVersion(t.Name().Short())
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment