Skip to content

Commit

Permalink
Merge pull request #142 from ninech/fix-update
Browse files Browse the repository at this point in the history
fix the update command with the language
  • Loading branch information
gajicdev authored Aug 15, 2024
2 parents 35a7505 + 938da9a commit 6dc848b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version: '1.22'
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version: '1.22'
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- name: Get dependencies
run: go get -v -t -d ./...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: setup go
uses: actions/setup-go@v5
with:
go-version: stable
go-version: '1.22'
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- name: Define goreleaser flags
run: test -n "$(git tag --points-at HEAD)" || echo "GORELEASER_FLAGS=--snapshot" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion api/log/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (c *Client) TailQuery(ctx context.Context, delayFor time.Duration, out outp
continue
}

if websocket.IsCloseError(err, websocket.CloseNormalClosure) || errors.Is(websocket.ErrCloseSent, err) {
if websocket.IsCloseError(err, websocket.CloseNormalClosure) || errors.Is(err, websocket.ErrCloseSent) {
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion create/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func waitForBuildFinish(ctx context.Context, app *apps.Application, logClient *l

go func() {
if _, err := p.Run(); err != nil {
if !errors.Is(tea.ErrProgramKilled, err) {
if !errors.Is(err, tea.ErrProgramKilled) {
fmt.Fprintf(os.Stderr, "error running tea program: %s", err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion update/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type applicationCmd struct {
GitInformationServiceURL string `help:"URL of the git information service." default:"https://git-info.deplo.io" env:"GIT_INFORMATION_SERVICE_URL" hidden:""`
SkipRepoAccessCheck bool `help:"Skip the git repository access check" default:"false"`
Debug bool `help:"Enable debug messages" default:"false"`
Language *string `help:"${app_language_help} Possible values: ${enum}" enum:"ruby,php,python,golang,nodejs,static,ruby-heroku," default:""`
Language *string `help:"${app_language_help} Possible values: ${enum}" enum:"ruby,php,python,golang,nodejs,static,ruby-heroku,"`
DockerfileBuild dockerfileBuild `embed:""`
}

Expand Down

0 comments on commit 6dc848b

Please sign in to comment.