Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Remove buildpack.toml, in favor of buildpack.toml.tmpl
Browse files Browse the repository at this point in the history
- Use go templating (scripts/template.go) to construct the buildpack.toml when packaging/releasing cnbs
- The CHANGELOG is deprecated, in favor of release notes
- Use dagger.DeleteBuildpack to preserve built CNB in our release pipeline
[#166793497]

Co-authored-by: David Freilich <[email protected]>
  • Loading branch information
ForestEckhardt and dfreilich committed Jul 9, 2019
1 parent 693968b commit 69de4e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bin/
*.tgz
bin/
/bin/
dep-cnb_*
/buildpack.toml
2 changes: 1 addition & 1 deletion buildpack.toml → buildpack.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[buildpack]
id = "org.cloudfoundry.dep-cnb"
name = "Dep Buildpack"
version = "0.0.1"
version = "{{ .Version }}"

[metadata]
include_files = ["bin/build","bin/detect","buildpack.toml","go.mod","go.sum"]
Expand Down
8 changes: 4 additions & 4 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package integration_test

import (
"github.com/cloudfoundry/dep-cnb/dep"
"os"
"path/filepath"
"testing"

"github.com/cloudfoundry/dep-cnb/dep"

"github.com/cloudfoundry/dagger"
. "github.com/onsi/gomega"
"github.com/sclevine/spec"
Expand All @@ -24,11 +24,11 @@ func TestIntegration(t *testing.T) {

depURI, err = dagger.PackageBuildpack(bpDir)
Expect(err).NotTo(HaveOccurred())
defer os.RemoveAll(depURI)
defer dagger.DeleteBuildpack(depURI)

goURI, err = dagger.GetLatestBuildpack("go-cnb")
Expect(err).NotTo(HaveOccurred())
defer os.RemoveAll(goURI)
defer dagger.DeleteBuildpack(goURI)

spec.Run(t, "Integration", testIntegration, spec.Report(report.Terminal{}))
}
Expand Down

0 comments on commit 69de4e5

Please sign in to comment.