Closed lgritz closed 3 years ago
HELP WANTED on this one. I know that not all SPK env variables can be ready (some values change for each variant, obviously). But there is some minimum set -- the name and version of the package being built, the path to the original source area from which things should be copied, etc. -- that could be known and would be very helpful to writing sources script.
If you try to use
to customize how the source area is copied to an spk layer, you quickly find (via that
env
) that there are noSPK_*
or other environment variables set, no breadcrumbs that let you write interesting scripts that know what they are doing. In particular, I cannot figure out how one can detect what was the pwd whenspk build
was run, that is, the place where you are supposed to be copying from.I think it would be good if at the "sources" stage, we had available all of the same SPK env variables that are present at the "build" stage. At the very least, the project name, the version, and the launch directory are a bare minimum. But the whole works would be better, including other build variables/options, versions of dependencies, etc.