Closed glenthomas closed 3 months ago
Version 1.3 has many path related fixes and I would not recommend to downgrade the version.
Please try the following:
local-path: ./asset
remote-path
accordingly. You should use relative path to avoid any path related issues.Hi @milanmk, I was looking through the script and have found what I think may be causing the problem.
On line 355
you are adding the file at {local_path_unslash}.deploy_running
, but when on 358
when you try and put
the file into the remote server you try search for just .deploy_running
.
What that says to me is that if local_path_unslash
is anything other than ./
then line 358
will fail.
(I'm not really familiar with lftp so I may be wrong)
@Djontleman put -O
option sets the base directory so upload files should only have filename without any path prefix.
What that says to me is that if local_path_unslash is anything other than ./ then line 358 will fail.
That depends on whether you are using absolute or relative path. For relative path of just .
will work just fine.
put -O
option sets the base directory so upload files should only have filename without any path prefix.
I don't think this is correct. Looking at the manual (https://lftp.yar.ru/lftp-man.html), it says:
-O
specifies base directory or URL where files should be placed
I don't think this option has any effect on where the command looks for the local file. I think there may be some misunderstanding with where it says:
If -o omitted, the base name of lfile is used as remote name
This is only an assumption, but I think "base name of lfile" is being misinterpreted as the base -O
, when I think it actually just means -o
defaults to the base path of lfile
.
For instance, if lfile
was specified as asset/.deploy_running
, then -o
would default to asset/
(or similar).
I think this is the case, given that in the issue description the put
command is looking for [github_runner]/.deploy_running
, even though the local path is defined as asset
(see my previous comment).
Also note that I have tested using relative path ./asset
as the local path and have the exact same error.
@milanmk
I have merged @Djontleman PR which fixes this issue.
I updated from 1.12 to 1.14 and saw this error:
I can see this commit in 1.13 updated the paths and I think this has introduced an issue. Reverting to 1.12 solved the problem.