Skip to content

Commit

Permalink
Additional cache busting (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
pandemicsyn authored Oct 18, 2024
1 parent 79e3f61 commit 5ca3bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dagger/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (r *Replicated) Release(
return err
}
if !gitTreeOK {
return fmt.Errorf("Your git tree is not clean. You cannot release what's not commited.")
return fmt.Errorf("Your git tree is not clean. You cannot release what's not committed.")
}

latestVersion, err := getLatestVersion(ctx)
Expand Down Expand Up @@ -244,7 +244,7 @@ func checkGitTree(ctx context.Context, source *dagger.Directory, githubToken *da
From("alpine/git:latest").
WithMountedDirectory("/go/src/github.com/replicatedhq/replicated", source).
WithWorkdir("/go/src/github.com/replicatedhq/replicated").
WithExec([]string{"git", "status", "--porcelain"})
With(CacheBustingExec([]string{"git", "status", "--porcelain"}))

output, err := container.Stdout(ctx)
if err != nil {
Expand All @@ -261,7 +261,7 @@ func checkGitTree(ctx context.Context, source *dagger.Directory, githubToken *da
From("alpine/git:latest").
WithMountedDirectory("/go/src/github.com/replicatedhq/replicated", source).
WithWorkdir("/go/src/github.com/replicatedhq/replicated").
WithExec([]string{"git", "branch"})
With(CacheBustingExec([]string{"git", "branch"}))

output, err = container.Stdout(ctx)
if err != nil {
Expand All @@ -278,7 +278,7 @@ func checkGitTree(ctx context.Context, source *dagger.Directory, githubToken *da
From("alpine/git:latest").
WithMountedDirectory("/go/src/github.com/replicatedhq/replicated", source).
WithWorkdir("/go/src/github.com/replicatedhq/replicated").
WithExec([]string{"git", "rev-parse", "HEAD"})
With(CacheBustingExec([]string{"git", "rev-parse", "HEAD"}))

commit, err := container.Stdout(ctx)
if err != nil {
Expand Down

0 comments on commit 5ca3bfa

Please sign in to comment.