From e534240307e19c40bfdbde0777a98879d5a9039d Mon Sep 17 00:00:00 2001 From: Ryan Moran Date: Tue, 4 Aug 2020 14:19:44 -0400 Subject: [PATCH] Updates master references to main Signed-off-by: Sophie Wigmore --- .github/workflows/create-release.yml | 9 ++++----- .github/workflows/test-pull-request.yml | 2 +- README.md | 2 +- build.go | 10 +++++----- detect.go | 2 +- doc.go | 2 +- environment.go | 8 ++++---- layer.go | 20 ++++++++++---------- option.go | 6 +++--- 9 files changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 09256d43..0f10dbb8 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -3,7 +3,7 @@ name: Create Release on: push: branches: - - master + - main jobs: unit: @@ -25,7 +25,7 @@ jobs: needs: unit steps: - name: Reset Draft Release - uses: paketo-buildpacks/github-config/actions/release/reset-draft@master + uses: paketo-buildpacks/github-config/actions/release/reset-draft@main with: repo: ${{ github.repository }} token: ${{ github.token }} @@ -34,18 +34,17 @@ jobs: - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Tag id: tag - uses: paketo-buildpacks/github-config/actions/tag@master + uses: paketo-buildpacks/github-config/actions/tag@main - name: Package Jam run : ./scripts/package.sh - name: Create Draft Release - uses: paketo-buildpacks/github-config/actions/release/create@master + uses: paketo-buildpacks/github-config/actions/release/create@main with: repo: ${{ github.repository }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} tag_name: v${{ steps.tag.outputs.tag }} target_commitish: ${{ github.sha }} name: v${{ steps.tag.outputs.tag }} - body: '' # TODO: remove this once body is made optional draft: true assets: | [ diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 92aa8288..46fcdbc3 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -3,7 +3,7 @@ name: Test Pull Request on: pull_request: branches: - - master + - main jobs: unit: diff --git a/README.md b/README.md index e85bcd9d..580a71a1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Package packit provides primitives for implementing a Cloud Native Buildpack according to the specification: -[https://github.com/buildpacks/spec/blob/master/buildpack.md](https://github.com/buildpacks/spec/blob/master/buildpack.md). +[https://github.com/buildpacks/spec/blob/main/buildpack.md](https://github.com/buildpacks/spec/blob/main/buildpack.md). ## Buildpack Interface diff --git a/build.go b/build.go index ee270825..99b14208 100644 --- a/build.go +++ b/build.go @@ -29,7 +29,7 @@ type BuildContext struct { // Plan includes the BuildpackPlan provided by the lifecycle as specified in // the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#buildpack-plan-toml. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpack-plan-toml. Plan BuildpackPlan // Stack is the value of the chosen stack. This value is populated from the @@ -67,10 +67,10 @@ type BuildResult struct { // Process represents a process to be run during the launch phase as described // in the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#launch. The +// https://github.com/buildpacks/spec/blob/main/buildpack.md#launch. The // fields of the process are describe in the specification of the launch.toml // file: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#launchtoml-toml. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#launchtoml-toml. type Process struct { // Type is an identifier to describe the type of process to be executed, eg. // "web". @@ -88,7 +88,7 @@ type Process struct { // BuildpackInfo is a representation of the basic information for a buildpack // provided in its buildpack.toml file as described in the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#buildpacktoml-toml. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpacktoml-toml. type BuildpackInfo struct { // ID is the identifier specified in the `buildpack.id` field of the buildpack.toml. ID string `toml:"id"` @@ -102,7 +102,7 @@ type BuildpackInfo struct { // BuildpackPlan is a representation of the buildpack plan provided by the // lifecycle and defined in the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#buildpack-plan-toml. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpack-plan-toml. // It is also used to return a set of refinements to the plan at the end of the // build phase. type BuildpackPlan struct { diff --git a/detect.go b/detect.go index 50ccbecd..d19838f8 100644 --- a/detect.go +++ b/detect.go @@ -44,7 +44,7 @@ type DetectResult struct { // BuildPlan is a representation of the Build Plan as specified in the // specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#build-plan-toml. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#build-plan-toml. // The BuildPlan allows buildpacks to indicate what dependencies they provide // or require. type BuildPlan struct { diff --git a/doc.go b/doc.go index d672fdd8..0f6e850f 100644 --- a/doc.go +++ b/doc.go @@ -1,6 +1,6 @@ // Package packit provides primitives for implementing a Cloud Native Buildpack // according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md. +// https://github.com/buildpacks/spec/blob/main/buildpack.md. // // Buildpack Interface // diff --git a/environment.go b/environment.go index 7698beab..ad8d53ba 100644 --- a/environment.go +++ b/environment.go @@ -11,7 +11,7 @@ type Environment map[string]string // Append adds a key-value pair to the environment as an appended value // according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#append. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#append. func (e Environment) Append(name, value, delim string) { e[name+".append"] = value @@ -23,21 +23,21 @@ func (e Environment) Append(name, value, delim string) { // Default adds a key-value pair to the environment as a default value // according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#default. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#default. func (e Environment) Default(name, value string) { e[name+".default"] = value } // Override adds a key-value pair to the environment as an overridden value // according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#override. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#override. func (e Environment) Override(name, value string) { e[name+".override"] = value } // Prepend adds a key-value pair to the environment as a prepended value // according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#prepend. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#prepend. func (e Environment) Prepend(name, value, delim string) { e[name+".prepend"] = value diff --git a/layer.go b/layer.go index 75ab06fe..3d2bd466 100644 --- a/layer.go +++ b/layer.go @@ -7,7 +7,7 @@ import ( // LayerType defines the set of layer types that can be declared according to // the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#layer-types. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#layer-types. type LayerType uint8 const ( @@ -26,7 +26,7 @@ const ( // Layer provides a representation of a layer managed by a buildpack as // described by the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#layers. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#layers. type Layer struct { // Path is the absolute location of the layer on disk. Path string `toml:"-"` @@ -36,35 +36,35 @@ type Layer struct { // Build indicates whether the layer is available to subsequent buildpacks // during their build phase according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#build-layers. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#build-layers. Build bool `toml:"build"` // Launch indicates whether the layer is exported into the application image // and made available during the launch phase according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#launch-layers. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#launch-layers. Launch bool `toml:"launch"` // Cache indicates whether the layer is persisted and made available to // subsequent builds of the same application according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#launch-layers + // https://github.com/buildpacks/spec/blob/main/buildpack.md#launch-layers // and - // https://github.com/buildpacks/spec/blob/master/buildpack.md#build-layers. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#build-layers. Cache bool `toml:"cache"` // SharedEnv is the set of environment variables attached to the layer and // made available during both the build and launch phases according to the // specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#provided-by-the-buildpacks. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#provided-by-the-buildpacks. SharedEnv Environment `toml:"-"` // BuildEnv is the set of environment variables attached to the layer and // made available during the build phase according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#provided-by-the-buildpacks. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#provided-by-the-buildpacks. BuildEnv Environment `toml:"-"` // LaunchEnv is the set of environment variables attached to the layer and // made available during the launch phase according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#provided-by-the-buildpacks. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#provided-by-the-buildpacks. LaunchEnv Environment `toml:"-"` // Metadata is an unspecified field allowing buildpacks to communicate extra @@ -73,7 +73,7 @@ type Layer struct { // that subsequent builds can inspect that metadata and choose to reuse the // layer if suitable. The Metadata field ultimately fills the metadata field // of the Layer Content Metadata TOML file according to the specification: - // https://github.com/buildpacks/spec/blob/master/buildpack.md#layer-content-metadata-toml. + // https://github.com/buildpacks/spec/blob/main/buildpack.md#layer-content-metadata-toml. Metadata map[string]interface{} `toml:"metadata"` } diff --git a/option.go b/option.go index 9ff86fd3..b4a81bee 100644 --- a/option.go +++ b/option.go @@ -18,8 +18,8 @@ type Option func(config OptionConfig) OptionConfig // ExitHandler serves as the interface for types that can handle an error // during the Detect or Build functions. ExitHandlers are responsible for // translating error values into exit codes according the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#detection and -// https://github.com/buildpacks/spec/blob/master/buildpack.md#build. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#detection and +// https://github.com/buildpacks/spec/blob/main/buildpack.md#build. type ExitHandler interface { Error(error) } @@ -33,7 +33,7 @@ type TOMLWriter interface { // EnvironmentWriter serves as the interface for types that can write an // Environment to a directory on disk according to the specification: -// https://github.com/buildpacks/spec/blob/master/buildpack.md#provided-by-the-buildpacks. +// https://github.com/buildpacks/spec/blob/main/buildpack.md#provided-by-the-buildpacks. type EnvironmentWriter interface { Write(dir string, env map[string]string) error }