-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/welcome - nothing major, just icons #213
Conversation
f9a8ddc
to
3c667d2
Compare
@@ -114,31 +114,36 @@ func (gb *GoBrew) Interactive(ask bool) { | |||
fmt.Println() | |||
|
|||
if currentVersion == NoneVersion { | |||
color.Warnln("GO Installed Version", ".......", currentVersion) | |||
color.Warnln("🚨 Installed Version", ".......", currentVersion, "⚠️") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use UTF-8 characters, how will this work on remote machines? Or where a different code page is used? Didn't check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't check. UTF8 support should be there on most machines. User can always use gobrew <command>
This PR only effects the gobrew
interactive command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
And we need to see what happened to the unit tests. |
something is off |
1 similar comment
… to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
@@ -12,7 +12,6 @@ linters: | |||
- staticcheck | |||
- dupl | |||
- errorlint | |||
- exportloopref |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
… to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
@@ -58,7 +58,6 @@ func TestJudgeVersion(t *testing.T) { | |||
// }, | |||
} | |||
for _, test := range tests { | |||
test := test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
╰─$ golangci-lint run ./...
helpers_test.go:61:3: The copy of the 'for' variable "test" can be deleted (Go 1.22+) (copyloopvar)
test := test
^
helpers_test.go:143:3: The copy of the 'for' variable "tt" can be deleted (Go 1.22+) (copyloopvar)
tt := tt
^
helpers_test.go:183:3: The copy of the 'for' variable "tt" can be deleted (Go 1.22+) (copyloopvar)
tt := tt
^
helpers_test.go:216:3: The copy of the 'for' variable "tt" can be deleted (Go 1.22+) (copyloopvar)
tt := tt
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@@ -12,7 +12,6 @@ linters: | |||
- staticcheck | |||
- dupl | |||
- errorlint | |||
- exportloopref |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@@ -114,31 +114,36 @@ func (gb *GoBrew) Interactive(ask bool) { | |||
fmt.Println() | |||
|
|||
if currentVersion == NoneVersion { | |||
color.Warnln("GO Installed Version", ".......", currentVersion) | |||
color.Warnln("🚨 Installed Version", ".......", currentVersion, "⚠️") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@@ -58,7 +58,6 @@ func TestJudgeVersion(t *testing.T) { | |||
// }, | |||
} | |||
for _, test := range tests { | |||
test := test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
No description provided.