diff --git a/bin/build b/bin/build index 7145d43..a8658da 100755 --- a/bin/build +++ b/bin/build @@ -140,9 +140,12 @@ else echo -n ":" >"$apt_env_dir"/PKG_CONFIG_PATH.delim fi -echo "launch = true" >"${apt_layer}".toml -echo "build = true" >>"${apt_layer}".toml -echo "cache = true" >>"${apt_layer}".toml +cat > "${apt_layer}.toml" <<-EOL +[types] +launch = true +build = true +cache = true +EOL end_time=$(date +%s%N) log::info "=> Installed $(wc -l Aptfile | cut -d' ' -f1) packages in $(($((end_time - start_time)) / 1000000000))s" diff --git a/buildpack.toml b/buildpack.toml index 74473ba..03467af 100644 --- a/buildpack.toml +++ b/buildpack.toml @@ -1,8 +1,8 @@ -api = "0.4" +api = "0.8" [buildpack] id = "digitalocean/apt" -version = "0.0.3" +version = "0.1.0" name = "apt Packages Buildpack" homepage = "https://github.com/digitalocean/buildpack-apt" description = "Installs apt packages for further builds and runtime" @@ -11,9 +11,6 @@ keywords = ["apt", "packages", "ubuntu"] [[buildpack.licenses]] type = "MIT" -[[stacks]] -id = "heroku-20" - [[stacks]] id = "heroku-22" diff --git a/go.mod b/go.mod index 15c6520..ce0278f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/digitalocean/buildpack-apt -go 1.19 +go 1.24 require github.com/stretchr/testify v1.7.0