Skip to content

Commit

Permalink
chore: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed May 19, 2024
1 parent ec0d4bf commit 8df21fa
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 134 deletions.
2 changes: 1 addition & 1 deletion .github/changelog/generate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __root="$(dirname "$__parent")"
CHANGELOG_FILE_NAME="CHANGELOG.md"
CHANGELOG_TMP_FILE_NAME="CHANGELOG.tmp"
TARGET_SHA=$(git rev-parse HEAD)
PREVIOUS_RELEASE_TAG=$(git describe --abbrev=0 --match='v*.*.*' --tags)
PREVIOUS_RELEASE_TAG=$(git tag -l | sort -V | grep -E 'v[0-9]+.[0-9]+.[0-9]+$' | tail -n 1)
PREVIOUS_RELEASE_SHA=$(git rev-list -n 1 $PREVIOUS_RELEASE_TAG)

if [ $TARGET_SHA == $PREVIOUS_RELEASE_SHA ]; then
Expand Down
129 changes: 0 additions & 129 deletions .goreleaser-prerelease.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/glctl/cmd/get-namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $> glctl get namespace [NAME]
# Get a multiple namespaces
$> glctl get namespace [NAME] [NAME] [NAME]`,
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
ValidArgsFunction: func(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
sdk := initSDK()
nss, err := sdk.GetNamespaces(cmd.Context())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/glctl/cmd/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $> glctl go [NAMESPACE/LINKNAME]
Args: func(cmd *cobra.Command, args []string) error {
return cobra.ExactArgs(1)(cmd, args)
},
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
ValidArgsFunction: func(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
sdk := initSDK()
nss, err := sdk.GetNamespaces(cmd.Context())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/glctl/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var updateCmd = &cobra.Command{
GroupID: "other",
Short: "Check for updates and update the application",
Long: `Check if a new version is available and update the application.`,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
if version == "dev" {
log.Printf("Cannot update a development version")
return
Expand Down
2 changes: 1 addition & 1 deletion cmd/glctl/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var versionCmd = &cobra.Command{
GroupID: "other",
Short: "Returns the version of the application",
Long: `Returns the version, commit hash and build date of the application.`,
Run: func(cmd *cobra.Command, args []string) {
Run: func(cmd *cobra.Command, _ []string) {
sdk := initSDK()

// Ignore errors, we don't care if the server is not reachable
Expand Down

0 comments on commit 8df21fa

Please sign in to comment.