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

no warning when project gem has un-added files #38

Open
mattgillooly opened this issue Oct 23, 2014 · 1 comment
Open

no warning when project gem has un-added files #38

mattgillooly opened this issue Oct 23, 2014 · 1 comment

Comments

@mattgillooly
Copy link
Contributor

When using the pipeline-as-a-gem deployment strategy, the project's gem is built using git-ls. If you have added files to the project, but not yet added them to the git repo, then the deployed gem will be lacking these files. This can be very confusing to diagnose, as all local tests on your development machines will find the file.

Bundler's gem deployment Rake tasks get around this by refusing to release a gem if there are uncommitted changes in the working directory.[1] We should consider whether a similar strategy would be worth adding to pipely, to prevent this confusing type of failure.

Alternatively, the overhead of committing changes before each pipeline deployment may introduce too much friction, and we might consider whether we can avoid the use of git-ls when building the gem.

[1] https://github.com/bundler/bundler/blob/6725c27bdd31c60f5d768360debc508912529f97/lib/bundler/gem_helper.rb#L119-L129

@mattgillooly
Copy link
Contributor Author

@mguymon - Thanks for clarifying this earlier. Let's track the impact of this issue here until we have a resolution.

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

No branches or pull requests

1 participant