Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow ignore file pattern in environment views #88

Open
2 tasks done
wdconinc opened this issue Nov 15, 2020 · 0 comments
Open
2 tasks done

Feature: Allow ignore file pattern in environment views #88

wdconinc opened this issue Nov 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@wdconinc
Copy link
Contributor

The environment spack.yaml section on views should be able to have a file pattern that should be ignored, e.g.

spack:
  views:
    all:
      ignore: [.cvmfscatalog]

This would avoid FileExistsError exceptions when creating views due to the presence of these files.

Rationale

Since all cvmfs catalog have the same name, they are creating conflicts.

Description

Currently, an additional step in environment creating and publishing is first removing all cvmfscatalog files, then creating the environment, then recreating all cvmfscatalog files. This could happen while a cvmfs release is in progress, resulting in missing cvmfs catalog files and reduced performance.

Additional information

Relevant line in the code: https://github.com/spack/spack/blob/develop/lib/spack/spack/filesystem_view.py#L374

General information

  • I have run spack --version and reported the version of Spack 0.15.4-51-9ff859acd
  • I have searched the issues of this repo and believe this is not a duplicate

This has been discussed with becker33 in the spack slack channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant