Closed siredmar closed 3 years ago
@tduffield @dnephin this is to inform you
@dnephin @tduffield I made a minimalist example on how to see this bug: https://github.com/siredmar/dobi_sources_artifacts_broken
sudo curl -L https://github.com/dnephin/dobi/releases/download/v0.13.0/dobi-linux -o /usr/local/bin/dobi.13
sudo curl -L https://github.com/dnephin/dobi/releases/download/v0.14.0/dobi-linux -o /usr/local/bin/dobi.14
sudo chmod +x /usr/local/bin/dobi.13 /usr/local/bin/dobi.14
git clone https://github.com/siredmar/dobi_sources_artifacts_broken
cd dobi_sources_artifacts_broken
dobi.13 install
dobi.14 install
Please have a look at the install target and the different source/artifacts configurations to see what is going wrong.
I investigated a little bit and basically the issue is that filepath.Rel()
in directory.go tries to create the relative path for the rootpath and the filepath. filepath.Rel() however checks if both arguments are absolute paths (e.g. /path/to/something
). If one or both arguments are not absolute paths (e.g. build/a.out
) this breaks.
So, we have a few options here:
{fs.projectdir}
in his values. This must be documented very well, because this breaks if not used correctly (like it does right now with 0.14.0).{env.cwd}
automatically in front of the values.Fixed by #209
This is a bug report. I tried using V0.14.0 but wasn't able to run my previous working dobi scripts. I narrowed it down to PR #184. This commit breaks the sources/artifact system.
The build fails with a message like this: