jq
is currently necessary at package-source time rather than when it is actually being built. This means that if it is not preinstalled (which will be the case when building with makechrootpkg
from extra/devtools), the build will fail as makepkg
can't determine the tag for the vscode repo. I think that there are two main ways to fix this:
-
Don't specify a tag for vscode in
source
. Then, inprepare()
, usecurl
,jq
, andgit
to check out the correct tag. -
Pin the vscode repo to a specific tag rather than dynamically determining it (as is done with the vscodium repo). IMO this is the better solution since this is a "stable" package (as opposed to a
-git
package), so ideally builds of the same PKGBUILD should work on the same sources and produce the same version package (after all, there isn't even apkgver()
), regardless of when it is done.
Pinned Comments