-
Notifications
You must be signed in to change notification settings - Fork 386
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
Bug when working with case insensitive file systems #1426
Comments
.git
directory exists in the same directory as Earthfile does
.git
directory exists in the same directory as Earthfile does
Hi @IzumiSy - I'm not able to reproduce. I ran the exact same steps and it's working fine for me. Is there anything particularly special about your setup? The error does seem strange... |
I am just still digging into this issue some more... For more information, my WSL2 environment has just worked with the same steps.
|
Tried re-installing and bootstrap, but no help. $ brew install earthly/earthly/earthly
==> Downloading https://github.com/earthly/homebrew-earthly/releases/download/earthly-0.6.0/earthly-0.6.0.catalina.bottle.tar.gz
==> Downloading from https://github-releases.githubusercontent.com/384258633/2ad45a77-1f3f-45dd-9a42-be5519449b86?X-Amz-Algorithm=AWS4-HMAC-SH
######################################################################## 100.0%
==> Installing earthly from earthly/earthly
==> Pouring earthly-0.6.0.catalina.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/earthly/0.6.0: 8 files, 32.7MB
Removing: /Users/izumi/Library/Caches/Homebrew/earthly--0.5.24.catalina.bottle.tar.gz... (14.9MB)
$ earthly --version
earthly version v0.6.0 darwin/amd64; macOS 10.15 Catalina
$ earthly bootstrap
buildkitd | Found buildkit daemon as docker container (earthly-buildkitd)
buildkitd | Updated image available. Restarting buildkit daemon...
buildkitd | ...Done
bootstrap | Bootstrapping successful.
$ cd ~/devs/earthly_simple/
$ earthly +all
1. Init 🚀
————————————————————————————————————————————————————————————————————————————————
buildkitd | Found buildkit daemon as docker container (earthly-buildkitd)
2. Build 🔧
————————————————————————————————————————————————————————————————————————————————
Error: build target: build main: bkClient.Build: failed to solve: resolve build context for target +all: unexpected non-relative path within git dir |
Currently looking into codes by checking out earthly to my local... |
Gotcha. This is caused by case-sensitiveness. izumi@rss0110npc earthly % pwd
/Users/izumi/devs/earthly
izumi@rss0110npc earthly % ls -la -d ~/*/ | head -n 10
drwx------@ 5 izumi 2016574179 160 Jan 22 2019 /Users/izumi/Applications/
drwxr-xr-x 4 izumi 2016574179 128 Apr 2 2018 /Users/izumi/Boostnote/
drwx------+ 5 izumi 2016574179 160 Sep 2 2020 /Users/izumi/Desktop/
drwxr-xr-x 105 izumi 2016574179 3360 Nov 26 17:38 /Users/izumi/Devs/ # <-- this is not "devs", but "Devs"!!
drwx------@ 35 izumi 2016574179 1120 Nov 26 11:19 /Users/izumi/Documents/
drwx------@ 18 izumi 2016574179 576 Nov 26 18:17 /Users/izumi/Downloads/
drwx------@ 75 izumi 2016574179 2400 Sep 15 14:15 /Users/izumi/Library/
drwx------+ 6 izumi 2016574179 192 Aug 8 2020 /Users/izumi/Movies/
drwx------+ 5 izumi 2016574179 160 Aug 8 2020 /Users/izumi/Music/
drwx------+ 322 izumi 2016574179 10304 Nov 26 13:46 /Users/izumi/Pictures/ |
I will open a PR to deal with this case. |
Once I initialized git in the directory where Earthfile exists, it says the error:
Error: build target: build main: bkClient.Build: failed to solve: resolve build context for target +all: unexpected non-relative path within git dir
I found the related issue (#449), but hasn't it been released yet?
Version
earthly version v0.5.24 darwin/amd64; macOS 10.15 Catalina
Reproduction steps
Files
Earthfile
Go
The text was updated successfully, but these errors were encountered: