We are building a buildpack and are using packit. The way documented for downloading dependencies from buildpack.toml is using the provided dependency manager.
dependencyManager := postal.NewService(cargo.NewTransport())
packit.Build(runtime.Build(dependencyManager))
It works fine as long as dependencies are from public repositories like maven, but if we want to add a URI to a private storage that in our case stores tar files, we have no way of configuring authentication for it.
It would be amazing if we could have a way to add basic auth to our requests when using this packit dependency manager.
We are building a buildpack and are using packit. The way documented for downloading dependencies from
buildpack.tomlis using the provided dependency manager.dependencyManager := postal.NewService(cargo.NewTransport())packit.Build(runtime.Build(dependencyManager))It works fine as long as dependencies are from public repositories like maven, but if we want to add a URI to a private storage that in our case stores tar files, we have no way of configuring authentication for it.
It would be amazing if we could have a way to add basic auth to our requests when using this packit dependency manager.