#file not found
1 messages ยท Page 1 of 1 (latest)
Possible, ive tried providing full absolute path, using the 'windows' way with \ backslash and also the 'vscode/linux' path way with / - but im hiting the same behaviour
I supose a strange part is "lstat /" at the beginning
which is a linux specific command.
Argh this is likely some changes in 0.11.5
Cc @lucid walrus
I thought I tested this ๐
I tested it too! But probably missing some corner case, catching up
its not from the latest patch
because i was on 0.11.4, and then thought " let me update, there was a recent patch"
and same issue
Good to know, seeing if I can track it down
Suspect this is the problematic line: https://github.com/sipsma/dagger/blob/5a67fc03fba05b755c1af2100c6756cd68ec614a/core/host.go#L88-L88, it doesn't work as expected for Windows paths. If correct, then yeah this problem has probably existed for quite a while.
I'll see if there's time to get this fix in for 0.11.6
shall i make a quick github issue
Yeah if you don't mind that would be very helpful, thank you!
@oak reef did you happen to try this permutation of formats:
dagger -m github.com/shykes/daggerverse/wolfi@v0.1.2 call container with-file --path=/README.md --source=C://Projects/example/README.md with-exec --args="cat","/README.md" stdout
key parts being that it's an absolute path and the use of / rather than \ in --source=C://Projects/example/README.md
If my understanding is correct, that might be a workaround for now. Working on testing a fix either way, so no worries if you don't have time to try again now.
Draft for the fix here, pending manual tests on windows https://github.com/dagger/dagger/pull/7506
success!
it works, but you have to manually go and change it all as the terminal recommendations for pathing is all C:\ etc. so you go back and put C://path/to/file and it works
Great to hear, but yeah my fix makes it work with normal windows paths, just verified on my windows vm, so after the next release (currently planned for tomorrow) you should be able to use C:\Foo\Bar or .\Foo\Bar successfully too
also it's funny. I am a windows user mostly due to gaming and deving but it's funny to see the other side with pure mac users only. I think if I didn't play pc games so much I would probably be using a mac or Ubuntu