Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

2.0.4 Could not locate Gemfile #60

Closed
fiammanda opened this issue Sep 28, 2020 · 19 comments
Closed

2.0.4 Could not locate Gemfile #60

fiammanda opened this issue Sep 28, 2020 · 19 comments

Comments

@fiammanda
Copy link

Run helaili/[email protected]
...
Starting the Jekyll Action
Could not locate Gemfile

It works well with 2.0.0

Starting the Jekyll Action
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
@helaili
Copy link
Owner

helaili commented Sep 28, 2020

Do you have a Gemfile.lock file in your repo?

@fiammanda
Copy link
Author

Do you have a Gemfile.lock file in your repo?

No, I don't, since the tutorial does not include one. If requied, what should be in the Gemfile.lock?

@helaili
Copy link
Owner

helaili commented Sep 28, 2020

See #54 (comment)

@fiammanda
Copy link
Author

See #54 (comment)

I include Gemfile.lock now but it still shows Could not locate Gemfile

@helaili
Copy link
Owner

helaili commented Sep 28, 2020

Is this your repo? I can't find the Gemfile.lock in it.

@fiammanda
Copy link
Author

Is this your repo? I can't find the Gemfile.lock in it.

I met this error and switch back to 2.0.0...

Your bundle only supports platforms ["x64-mingw32"] but your local platforms are
["ruby", "x86_64-linux-musl"], and there's no compatible match between those two
lists.

@helaili
Copy link
Owner

helaili commented Sep 29, 2020

This is most likely a problem with your Ruby setup. Maybe you should try running the workflow on windows runner, replacing this line by:

    runs-on: windows-latest

@fiammanda
Copy link
Author

This is most likely a problem with your Ruby setup. Maybe you should try running the workflow on windows runner, replacing this line by:

    runs-on: windows-latest

Error: Container action is only supported on Linux

@sebranchett
Copy link

Having exactly the same issue. Working on Windows, action only works for ubuntu.
Removing Gemfile.lock leads to message that Gemfile cannot be located.
Adding Gemfile.lock (generated on Windows) causes all sorts of problems.
Managed to get action working by manually editing my Gemfile.lock, removing all references to -x64-mingw32, and adding the ruby platform:
-- eventmachine (1.2.7-x64-mingw32)
-- ffi (1.13.1-x64-mingw32)
++ eventmachine (1.2.7)
++ ffi (1.13.1)
-- sassc (2.4.0-x64-mingw32)
++ sassc (2.4.0)
PLATFORMS
x64-mingw32
++ ruby

Would be nice if this action could generate a (linux) Gemfile.lock for you.

Very pleased that this action exists and that I got it working!

dvergeylen added a commit to dvergeylen/dvergeylen.github.io that referenced this issue Oct 9, 2020
@fiammanda
Copy link
Author

Having exactly the same issue. Working on Windows, action only works for ubuntu.
Removing Gemfile.lock leads to message that Gemfile cannot be located.
Adding Gemfile.lock (generated on Windows) causes all sorts of problems.
Managed to get action working by manually editing my Gemfile.lock, removing all references to -x64-mingw32, and adding the ruby platform:
-- eventmachine (1.2.7-x64-mingw32)
-- ffi (1.13.1-x64-mingw32)
++ eventmachine (1.2.7)
++ ffi (1.13.1)
-- sassc (2.4.0-x64-mingw32)
++ sassc (2.4.0)
PLATFORMS
x64-mingw32
++ ruby

Would be nice if this action could generate a (linux) Gemfile.lock for you.

Very pleased that this action exists and that I got it working!

Thank so much for sharing! I will try if it works with local building, and if not I will go with the previous version for now.

@igsoblechero
Copy link

igsoblechero commented Oct 25, 2020

Same issue as above. I basically followed the official GitHub Actions tutorial but tried to use version 2.0.4 instead of 2.0.1. It works up to 2.0.3, so it looks like it's an error on the Gemfile search logic.

I can totally generate a Gemfile.lock file as I'm working on Linux. However, I'm surprised I'm forced to do it for version 2.0.4, specially since the tutorial explicitly tells us not to push that file. Any reason for this?

@helaili
Copy link
Owner

helaili commented Oct 30, 2020

Could someone try using helaili/jekyll-action@30a62b6 to see if it does the trick?

@qwtel
Copy link
Contributor

qwtel commented Oct 31, 2020

Could someone try using helaili/jekyll-action@30a62b6 to see if it does the trick?

This did not do the trick for me:

The deployment setting requires a Gemfile.lock. Please make sure you have
checked your Gemfile.lock into version control before deploying.

@helaili
Copy link
Owner

helaili commented Nov 1, 2020

Can you provide a link to the repo with this problem?

@fiammanda
Copy link
Author

@qwtel
Copy link
Contributor

qwtel commented Nov 2, 2020

Can you provide a link to the repo with this problem?

https://github.com/getclaps/site/runs/1335328771?check_suite_focus=true

@jasonpatrickellykrause
Copy link

jasonpatrickellykrause commented Nov 7, 2020

Could someone try using helaili/jekyll-action@30a62b6 to see if it does the trick?

Negative.

https://github.com/jasonpatrickellykrause/JasonPatricKellyKrause.github.io/runs/1368033531?check_suite_focus=true

@helaili
Copy link
Owner

helaili commented Nov 15, 2020

I think I now got it right. At least it's now working in a fork of @fiammanda's repo

Another try using helaili/jekyll-action@56f7087 to confirm, anyone?

@BenResTech
Copy link

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

No branches or pull requests

7 participants