Skip to content

Commit

Permalink
Move package.toml to be under buildpacks/
Browse files Browse the repository at this point in the history
Having everything in one directory is more convenient and more discoverable

Signed-off-by: Natalie Arellano <narellano@vmware.com>
  • Loading branch information
natalieparellano committed Sep 22, 2023
1 parent 74d2716 commit 6746e43
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 43 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ build-buildpacks-jammy: build-sample-root

build-linux-packages: build-sample-root
@echo "> Creating 'hello-world' buildpack package"
$(PACK_CMD) buildpack package cnbs/sample-package:hello-world --config $(SAMPLES_ROOT)/packages/hello-world/package.toml $(PULL_POLICY_NEVER)
$(PACK_CMD) buildpack package cnbs/sample-package:hello-world --config $(SAMPLES_ROOT)/buildpacks/hello-world/package.toml $(PULL_POLICY_NEVER)

@echo "> Creating 'hello-universe' buildpack package"
$(PACK_CMD) buildpack package cnbs/sample-package:hello-universe --config $(SAMPLES_ROOT)/packages/hello-universe/package.toml $(PULL_POLICY_NEVER)
$(PACK_CMD) buildpack package cnbs/sample-package:hello-universe --config $(SAMPLES_ROOT)/buildpacks/hello-universe/package.toml $(PULL_POLICY_NEVER)

deploy-linux: deploy-linux-bases deploy-linux-packages deploy-linux-builders

Expand Down Expand Up @@ -190,10 +190,10 @@ build-buildpacks-dotnet-framework-2022: build-sample-root

build-windows-packages: build-sample-root
@echo "> Creating 'hello-world-windows' buildpack package"
$(PACK_CMD) buildpack package cnbs/sample-package:hello-world-windows --config $(SAMPLES_ROOT)/packages/hello-world-windows/package.toml $(PULL_POLICY_NEVER)
$(PACK_CMD) buildpack package cnbs/sample-package:hello-world-windows --config $(SAMPLES_ROOT)/buildpacks/hello-world-windows/package.toml $(PULL_POLICY_NEVER)

@echo "> Creating 'hello-universe-windows' buildpack package"
$(PACK_CMD) buildpack package cnbs/sample-package:hello-universe-windows --config $(SAMPLES_ROOT)/packages/hello-universe-windows/package.toml $(PULL_POLICY_NEVER)
$(PACK_CMD) buildpack package cnbs/sample-package:hello-universe-windows --config $(SAMPLES_ROOT)/buildpacks/hello-universe-windows/package.toml $(PULL_POLICY_NEVER)

deploy-windows-packages:
@echo "> Deploying windows packages..."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[buildpack]
uri = "../../buildpacks/hello-universe-windows"
uri = "."

[[dependencies]]
uri = "../../buildpacks/hello-moon-windows"
uri = "../hello-moon-windows"

[[dependencies]]
uri = "../../buildpacks/hello-world-windows"
uri = "../hello-world-windows"
# Alternatively, to use an image while packaging, you can use:
# uri = "docker://cnbs/sample-package:hello-world-windows"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[buildpack]
uri = "../../buildpacks/hello-universe/"
uri = "."

[[dependencies]]
uri = "../../buildpacks/hello-moon"
uri = "../hello-moon"

[[dependencies]]
uri = "../../buildpacks/hello-world"
uri = "../hello-world"
# Alternatively, to use an image while packaging, you can use:
# uri = "docker://cnbs/sample-package:hello-world"
5 changes: 5 additions & 0 deletions buildpacks/hello-world-windows/package.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[buildpack]
uri = "."

[platform]
os = "windows"
2 changes: 2 additions & 0 deletions buildpacks/hello-world/package.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[buildpack]
uri = "."
8 changes: 0 additions & 8 deletions packages/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/hello-universe-windows/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions packages/hello-universe/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/hello-world-windows/package.toml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/hello-world/package.toml

This file was deleted.

0 comments on commit 6746e43

Please sign in to comment.