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/ Stack clean --unused cleans up all files that are not published #5371

Open
nalchevanidze opened this issue Aug 16, 2020 · 1 comment

Comments

@nalchevanidze
Copy link
Contributor

nalchevanidze commented Aug 16, 2020

Sometimes we use Json or other related data files in our libraries.
They must be listed in package.yml' data-files', but we forgot about it.

data-files:
  - test/**/*.gql
  - test/**/*.json

since they exist in our git repository, it's not really possible to safely verify that all files are listed in `package.yml'.

This causes a problem like this commercialhaskell/stackage#5602, the library is already released but is not built correctly.

We could easily avoid this scenario if we had such a code in our 'ci'.

stack clean --unused # cleans up all files that are not published
stack install --test
@nalchevanidze
Copy link
Contributor Author

may stack clean --unlisted sound better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants