Skip to content

Commit 679709d

Browse files
authored
Merge pull request cds-hooks#639 from buildpacks/feat/remove-stacks
Bump to buildpack API version that removes stacks
2 parents a0b47a6 + 0ec23c2 commit 679709d

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

content/docs/app-developer-guide/using-inline-buildpacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ version = "1.0"
2323
id = "me/rake-tasks"
2424

2525
[io.buildpacks.group.script]
26-
api = "0.6"
26+
api = "0.10"
2727
inline = "rake package"
2828
```
2929

@@ -38,7 +38,7 @@ Inline buildpacks aren't constrained to a single command, however. You can defin
3838
id = "me/cleanup"
3939

4040
[io.buildpacks.group.script]
41-
api = "0.9"
41+
api = "0.10"
4242
inline = """
4343
set -e
4444
source scripts/utils.sh

content/docs/buildpack-author-guide/create-buildpack/adding-bill-of-materials.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ First, annotate the `buildpack.toml` to specify that it emits CycloneDX:
4343
<!-- test:file=node-js-buildpack/buildpack.toml -->
4444
```toml
4545
# Buildpack API version
46-
api = "0.8"
46+
api = "0.10"
4747

4848
# Buildpack ID and metadata
4949
[buildpack]
@@ -144,7 +144,7 @@ EOL
144144
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
145145
[[processes]]
146146
type = "web"
147-
command = "node app.js"
147+
command = ["node", "app.js"]
148148
default = true
149149
EOL
150150

content/docs/buildpack-author-guide/create-buildpack/building-blocks-cnb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Example:
1717
<!-- test:exec -->
1818
```bash
1919
pack buildpack new examples/node-js \
20-
--api 0.8 \
20+
--api 0.10 \
2121
--path node-js-buildpack \
2222
--version 0.0.1 \
2323
--stacks io.buildpacks.samples.stacks.jammy
@@ -40,7 +40,7 @@ You will have `node-js-buildpack/buildpack.toml`<!--+"{{open}}"+--> in your buil
4040
<!-- test:file=node-js-buildpack/buildpack.toml -->
4141
```toml
4242
# Buildpack API version
43-
api = "0.8"
43+
api = "0.10"
4444

4545
# Buildpack ID and metadata
4646
[buildpack]

content/docs/buildpack-author-guide/create-buildpack/caching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
5454
# our web process
5555
[[processes]]
5656
type = "web"
57-
command = "node app.js"
57+
command = ["node", "app.js"]
5858
default = true
5959
6060
# our debug process
6161
[[processes]]
6262
type = "debug"
63-
command = "node --inspect app.js"
63+
command = ["node", "--inspect", "app.js"]
6464
EOL
6565
```
6666

@@ -121,7 +121,7 @@ EOL
121121
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
122122
[[processes]]
123123
type = "web"
124-
command = "node app.js"
124+
command = ["node", "app.js"]
125125
default = true
126126
EOL
127127
```

content/docs/buildpack-author-guide/create-buildpack/make-app-runnable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To make your app runnable, a default start command must be set. You'll need to a
1515
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
1616
[[processes]]
1717
type = "web"
18-
command = "node app.js"
18+
command = ["node", "app.js"]
1919
default = true
2020
EOL
2121

@@ -48,7 +48,7 @@ echo -e '[types]\nlaunch = true' > "${CNB_LAYERS_DIR}/node-js.toml"
4848
cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
4949
[[processes]]
5050
type = "web"
51-
command = "node app.js"
51+
command = ["node", "app.js"]
5252
default = true
5353
EOL
5454
```

content/docs/buildpack-author-guide/create-buildpack/make-buildpack-configurable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ EOL
8181
cat >> "${CNB_LAYERS_DIR}/launch.toml" << EOL
8282
[[processes]]
8383
type = "web"
84-
command = "node app.js"
84+
command = ["node", "app.js"]
8585
default = true
8686
EOL
8787
```

content/docs/buildpack-author-guide/create-buildpack/specify-multiple-process-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
1616
# our web process
1717
[[processes]]
1818
type = "web"
19-
command = "node app.js"
19+
command = ["node", "app.js"]
2020
default = true
2121
2222
# our debug process
2323
[[processes]]
2424
type = "worker"
25-
command = "node --inspect app.js"
25+
command = ["node", "--inspect", "app.js"]
2626
EOL
2727

2828
# ...
@@ -58,13 +58,13 @@ cat > "${CNB_LAYERS_DIR}/launch.toml" << EOL
5858
# our web process
5959
[[processes]]
6060
type = "web"
61-
command = "node app.js"
61+
command = ["node", "app.js"]
6262
default = true
6363
6464
# our debug process
6565
[[processes]]
6666
type = "debug"
67-
command = "node --inspect app.js"
67+
command = ["node", "--inspect", "app.js"]
6868
EOL
6969
```
7070

0 commit comments

Comments
 (0)