Skip to content

Commit

Permalink
Updates master references to main
Browse files Browse the repository at this point in the history
Signed-off-by: Sophie Wigmore <[email protected]>
  • Loading branch information
Ryan Moran authored and sophiewigmore committed Aug 4, 2020
1 parent ba36757 commit e534240
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 31 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release
on:
push:
branches:
- master
- main

jobs:
unit:
Expand All @@ -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 }}
Expand All @@ -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: |
[
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Pull Request
on:
pull_request:
branches:
- master
- main

jobs:
unit:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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".
Expand All @@ -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"`
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -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
//
Expand Down
8 changes: 4 additions & 4 deletions environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
20 changes: 10 additions & 10 deletions layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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:"-"`
Expand All @@ -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
Expand All @@ -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"`
}

Expand Down
6 changes: 3 additions & 3 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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
}
Expand Down

0 comments on commit e534240

Please sign in to comment.