rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Changing pkgs revision (commit hash/version) should invalidate cache

Open dmadisetti opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I moved my nixpkgs_git_repository revision to latest nixpkgs head, and my nixpkgs_package kept giving the same output. Flushing the cache or changing build_file_content seems to work.

Describe the solution you'd like You could tag the build file contents with the revision behind the scenes? I wonder if that would be enough to trip up bazel cache invalidation.

Describe alternatives you've considered Print warning to flush cache on nixpkgs update, less than ideal since there may be other deps in the cache unrelated to nixpkgs

dmadisetti avatar Jul 28 '22 12:07 dmadisetti