limjh16 / jekyll-action-ts

:hammer: https://github.com/helaili/jekyll-action but without Docker
MIT License
44 stars 19 forks source link

Bundle does not install #9

Closed UriShX closed 3 years ago

UriShX commented 3 years ago

When jekyll-action-ts runs on my blog the build fails, returning ENOENT: no such file or directory, open '/home/runner/work/microblog/microblog/Gemfile.lock' followed by Gemfile.lock probably needs updating. Run "bundle install" locally and commit changes. Exiting action. \ I tried running locally and submitting Gemfile.lock, but had problems with local overrides for the theme's Sass files. Specifically, it does not seem to link correctly, causing some styles to be rendered directly from the theme's styles. I am pulling the theme in the Gemfile directly from Github. I couldn't find how to retrieve a log for the action, if you can point me to a tutorial I'll share it here. In the meantime, you can see a failed deployment here. Thanks!

limjh16 commented 3 years ago

Hey, the log is here. Looking through your repository, it does not seem like you have a Gemfile.lock file. It should not be affected by your Sass files, that is a separate issue. Maybe you can try these commands:

git add Gemfile.lock
git commit -m "add Gemfile.lock"
git push
UriShX commented 3 years ago

Hi, Thanks for the quick reply. I thought line 163: bundle install --jobs=4 --retry=3 --gemfile=${gemSrc} was supposed to do that. I uploaded the Gemfile.lock and it now works fine. For some reason the Sass files also compile as they should now. Don't really know why. Thanks again

limjh16 commented 3 years ago

since this is a deployment action, the bundle install command will only install whatever is in the lockfile rather than what is in the Gemfile to ensure that the versions of software installed are fully compatible.

UriShX commented 3 years ago

Thanks for the explanation. I'll keep that in mind.