Skip to content

Commit

Permalink
fix: Don't volume cache builds (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi authored Dec 20, 2024
1 parent 7fae1dd commit 906525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/worker/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (s *Worker) specFromRequest(request *types.ContainerRequest, options *Conta
}

// If volume caching is enabled, set it up and add proper mounts to spec
if s.fileCacheManager.CacheAvailable() && request.Workspace.VolumeCacheEnabled {
if s.fileCacheManager.CacheAvailable() && request.Workspace.VolumeCacheEnabled && !request.IsBuildRequest() {
err = s.fileCacheManager.EnableVolumeCaching(request.Workspace.Name, volumeCacheMap, spec)
if err != nil {
log.Error().Str("container_id", request.ContainerId).Msgf("failed to setup volume caching: %v", err)
Expand Down

0 comments on commit 906525a

Please sign in to comment.