Resolve decidim installation path from Gemfile.lock
#1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Right now the local npm package installation process runs
bundle show decidim
to determine thedecidim
gem installation path.As discussed at decidim/decidim#8159 with @leio10, this does not work correctly at Heroku because when the NPM dependencies are installed, Ruby and Bundler are not yet available.
This changes the behavior so that if
bundle show decidim
fails, it now reads the Decidim installation path fromGemfile.lock
for git and path installations. This should ensure that the same version of the NPM dependencies are installed as defined in thepackage-lock.json
to avoid the SHA integrity violations.@leio10 I think this should provide a solution to the issue we discussed at:
decidim/decidim#8159 (comment)
NOTE: Right now I am using my own fork of
@snyk/gemfile
(theGemfile.lock
parser). The reason for this is that the current version of@snyk/gemfile
does not work with the Decidim core's development_app and test_app Gemfiles because of this bug:snyk/gemfile#11