Local dependencies in [[metadata.dependencies]] #193
-
Hi all, Does anyone know if it's possible to provide a local file path to the URI in the Error: failed to cache dependencies: failed to download dependency: failed to make request: Get "/tmp/bla.tar.gz": unsupported protocol scheme "" Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes you can, you need to prefix the filepath with |
Beta Was this translation helpful? Give feedback.
-
Buildpacks written with packit and libpak also have the capability to reference remote URLs but bundle the dependencies with the buildpack at package time (often called bundling in offline mode). This tends to be more flexible, cause your buildpack can be published in both ways since it's a package time decision whether you want dependencies include or not. With offline mode, the net result is basically the same as what @sophiewigmore mentioned. |
Beta Was this translation helpful? Give feedback.
Yes you can, you need to prefix the filepath with
file://
so it looks like:uri: "file://<path to file>
. Then you can copy in the file to the top-level of the buildpack dir, added the file name toinclude-files
array at the top of thebuildpack.toml
.