Skip to content

Commit 939d763

Browse files
authored
APPS-10823: Update Buildpack API to v0.8 (#4)
* APPS-10823: Update Buildpack API from 0.4 to 0.8 * Set version to v0.1.0
1 parent 186fc97 commit 939d763

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bin/build

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,12 @@ else
140140
echo -n ":" >"$apt_env_dir"/PKG_CONFIG_PATH.delim
141141
fi
142142

143-
echo "launch = true" >"${apt_layer}".toml
144-
echo "build = true" >>"${apt_layer}".toml
145-
echo "cache = true" >>"${apt_layer}".toml
143+
cat > "${apt_layer}.toml" <<-EOL
144+
[types]
145+
launch = true
146+
build = true
147+
cache = true
148+
EOL
146149

147150
end_time=$(date +%s%N)
148151
log::info "=> Installed $(wc -l Aptfile | cut -d' ' -f1) packages in $(($((end_time - start_time)) / 1000000000))s"

buildpack.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
api = "0.4"
1+
api = "0.8"
22

33
[buildpack]
44
id = "digitalocean/apt"
5-
version = "0.0.3"
5+
version = "0.1.0"
66
name = "apt Packages Buildpack"
77
homepage = "https://github.com/digitalocean/buildpack-apt"
88
description = "Installs apt packages for further builds and runtime"
@@ -11,9 +11,6 @@ keywords = ["apt", "packages", "ubuntu"]
1111
[[buildpack.licenses]]
1212
type = "MIT"
1313

14-
[[stacks]]
15-
id = "heroku-20"
16-
1714
[[stacks]]
1815
id = "heroku-22"
1916

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/digitalocean/buildpack-apt
22

3-
go 1.19
3+
go 1.24
44

55
require github.com/stretchr/testify v1.7.0
66

0 commit comments

Comments
 (0)