Skip to content

Commit 0a6ff52

Browse files
committed
feat(workflow-cli): upgrade to golang1.17
1 parent 9fe0083 commit 0a6ff52

13 files changed

Lines changed: 13 additions & 4 deletions

cmd/apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (d *DryccCmd) AppCreate(id, remote string, noRemote bool) error {
3737

3838
if !noRemote {
3939
if err = git.CreateRemote(git.DefaultCmd, s.Client.ControllerURL.Host, remote, app.ID); err != nil {
40-
if strings.Contains(err.Error(), fmt.Sprintf("fatal: remote %s already exists.", remote)) {
40+
if strings.Contains(err.Error(), fmt.Sprintf("error: remote %s already exists.", remote)) {
4141
msg := "A git remote with the name %s already exists. To overwrite this remote run:\n"
4242
msg += "drycc git:remote --force --remote %s --app %s"
4343
return fmt.Errorf(msg, remote, remote, app.ID)

drycc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Subcommands, use 'drycc help [subcommand]' to learn more::
6767
tls manage TLS settings for applications
6868
users manage users
6969
version display client version
70-
Allowlist manage allowlisted addresses of an application
70+
allowlist manage allowlisted addresses of an application
7171
services manage services for your applications
7272
timeouts manage pods termination grace period
7373
volumes manage volumes for your applications

parser/apps.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ Options:
199199

200200
func appRun(argv []string, cmdr cmd.Commander) error {
201201
usage := `
202-
Runs a command inside an ephemeral app container. Default environment is
203-
/bin/bash.
202+
Runs a command inside an ephemeral app container.
204203
205204
Usage: drycc apps:run [--mount=<volume>:<path>...] [options] [--] <command>...
206205

pkg/logging/log_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux || darwin
12
// +build linux darwin
23

34
package logging

pkg/logging/log_unix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux || darwin
12
// +build linux darwin
23

34
package logging

pkg/logging/log_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package logging

pkg/webbrowser/webbrowser_darwin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin
12
// +build darwin
23

34
package webbrowser

pkg/webbrowser/webbrowser_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package webbrowser

pkg/webbrowser/webbrowser_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package webbrowser

settings/home_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux || darwin
12
// +build linux darwin
23

34
package settings

0 commit comments

Comments
 (0)