Compare commits

...

1779 Commits

Author SHA1 Message Date
dependabot[bot] f989bababe
build(deps): bump the go-dependencies group with 6 updates (#2424)
Bumps the go-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/go-connections](https://github.com/docker/go-connections) | `0.5.0` | `0.6.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.40.0` | `0.41.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.26.0` | `0.27.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.34.0` | `0.35.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.33.0` | `0.34.0` |
| [golang.org/x/text](https://github.com/golang/text) | `0.27.0` | `0.28.0` |


Updates `github.com/docker/go-connections` from 0.5.0 to 0.6.0
- [Commits](https://github.com/docker/go-connections/compare/v0.5.0...v0.6.0)

Updates `golang.org/x/crypto` from 0.40.0 to 0.41.0
- [Commits](https://github.com/golang/crypto/compare/v0.40.0...v0.41.0)

Updates `golang.org/x/mod` from 0.26.0 to 0.27.0
- [Commits](https://github.com/golang/mod/compare/v0.26.0...v0.27.0)

Updates `golang.org/x/sys` from 0.34.0 to 0.35.0
- [Commits](https://github.com/golang/sys/compare/v0.34.0...v0.35.0)

Updates `golang.org/x/term` from 0.33.0 to 0.34.0
- [Commits](https://github.com/golang/term/compare/v0.33.0...v0.34.0)

Updates `golang.org/x/text` from 0.27.0 to 0.28.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: github.com/docker/go-connections
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-version: 0.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-version: 0.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-25 08:36:25 -05:00
Jesse Brown 58cb8935ef
Update imgutil to improve containerd storage driver performance (#2427)
* Update imgutil to improve containerd storage driver performance

- Always try the fast path first (omitting base layers) regardless of storage type. This greatly speeds up creating ephemeral builders in pack when it saves to the daemon.
- Added log lines around ephemeral builder creation to help show time spent.

Signed-off-by: Jesse Brown <jabrown85@gmail.com>

* fixup! Update imgutil to improve containerd storage driver performance

Signed-off-by: Jesse Brown <jabrown85@gmail.com>

---------

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
2025-08-18 10:32:33 -05:00
dependabot[bot] f9ac9cac91
build(deps): bump the go-dependencies group with 3 updates (#2422)
Bumps the go-dependencies group with 3 updates: [github.com/docker/cli](https://github.com/docker/cli), [github.com/docker/docker](https://github.com/docker/docker) and [github.com/onsi/gomega](https://github.com/onsi/gomega).


Updates `github.com/docker/cli` from 28.3.2+incompatible to 28.3.3+incompatible
- [Commits](https://github.com/docker/cli/compare/v28.3.2...v28.3.3)

Updates `github.com/docker/docker` from 28.3.2+incompatible to 28.3.3+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.3.2...v28.3.3)

Updates `github.com/onsi/gomega` from 1.37.0 to 1.38.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.37.0...v1.38.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-version: 28.3.3+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.3+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-version: 1.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-07 06:45:16 -05:00
dependabot[bot] 284fe34641
build(deps): bump the go-dependencies group with 8 updates (#2416)
---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-version: 28.3.2+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.2+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-version: 0.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-version: 0.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-version: 0.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-15 21:53:10 -05:00
David Gannon fb0563f4cd
Added the first tag argument (#2394)
* Added the first `--tag` argument to builder and buildpack package create command

Signed-off-by: David Gannon <19214156+dgannon991@users.noreply.github.com>

---------

Signed-off-by: David Gannon <19214156+dgannon991@users.noreply.github.com>
2025-07-07 11:43:32 -05:00
Juan Bustamante ab77bee404
Fix #2405: Add template parameter to GitHub issue URL (#2407)
When using 'pack buildpack register', the GitHub URL was missing
the 'template=add-buildpack.md' parameter, causing GitHub to redirect
to a template selection page and drop all pre-filled parameters.

This fix adds the template parameter to ensure the correct issue
template is used and all parameters are preserved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-07-02 12:37:55 -05:00
dependabot[bot] 6ae35dced7
build(deps): bump buildpacks/github-actions from 5.9.1 to 5.9.2 (#2412)
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.9.1 to 5.9.2.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.9.1...v5.9.2)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-version: 5.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 08:04:46 -05:00
Juan Bustamante f1c347c6a6
Updating lifecycle version to latest v0.20.11 (#2411)
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-27 15:28:22 -05:00
dependabot[bot] 1ea8a29fb4
build(deps): bump github.com/go-viper/mapstructure/v2 in /tools (#2409)
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-27 14:08:05 -05:00
dependabot[bot] 90c1fdd6d8
build(deps): bump github.com/go-viper/mapstructure/v2 (#2410)
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-27 12:37:19 -05:00
dependabot[bot] d54ad1f25c
build(deps): bump buildpacks/github-actions from 5.8.11 to 5.9.1 (#2401)
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.11 to 5.9.1.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.11...v5.9.1)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-version: 5.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-27 16:27:13 +00:00
dependabot[bot] 204a8c4c4a
build(deps): bump the go-dependencies group across 1 directory with 3 updates (#2408)
Bumps the go-dependencies group with 3 updates in the / directory: [github.com/GoogleContainerTools/kaniko](https://github.com/GoogleContainerTools/kaniko), [github.com/docker/cli](https://github.com/docker/cli) and [github.com/go-git/go-git/v5](https://github.com/go-git/go-git).


Updates `github.com/GoogleContainerTools/kaniko` from 1.23.2 to 1.24.0
- [Release notes](https://github.com/GoogleContainerTools/kaniko/releases)
- [Changelog](https://github.com/GoogleContainerTools/kaniko/blob/main/CHANGELOG.md)
- [Commits](https://github.com/GoogleContainerTools/kaniko/compare/v1.23.2...v1.24.0)

Updates `github.com/docker/cli` from 28.2.2+incompatible to 28.3.0+incompatible
- [Commits](https://github.com/docker/cli/compare/v28.2.2...v28.3.0)

Updates `github.com/go-git/go-git/v5` from 5.16.0 to 5.16.2
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.16.0...v5.16.2)

---
updated-dependencies:
- dependency-name: github.com/GoogleContainerTools/kaniko
  dependency-version: 1.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/docker/cli
  dependency-version: 28.3.0+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.16.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-27 16:03:51 +00:00
Jerico Pena 6ee43b1713
Bump imgutil to latest and docker from v27.5.1 to v28.3.0 (#2406)
* Bump imgutil to latest and docker from v27.5.1 to v28.3.0
* Remove deprecated DSA key form sshdialer

Signed-off-by: Jerico Pena <jericop@gmail.com>
2025-06-27 09:57:41 -05:00
Juan Bustamante 57cf5b9e07
updating to ubuntu jammy when releasing pack (#2400)
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-16 17:11:41 -05:00
Juan Bustamante 4188637c6a
Jjbustamante/fix pack 2397 (#2399)
* Reverting to the previous way of releasing ubuntu's pack version

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-16 16:54:52 -05:00
Juan Bustamante 9bd06a987a
upding delivery workflow to correct the wrong format (#2398)
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-16 10:43:40 -05:00
Juan Bustamante 8e54e8a8db Fixing build-additional-arch for windows
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-06 12:31:14 -05:00
Prashant Rewar ba54b86ec0
Support Insecure Registries (#2077)
* Support Insecure Registries

Signed-off-by: Prashant Rewar <108176843+prashantrewar@users.noreply.github.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
Co-authored-by: Juan Bustamante <juan.bustamante@broadcom.com>
Co-authored-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-06 08:59:28 -05:00
Juan Bustamante 5cbbf3396f
`pack builder create` supports system buildpacks (#2349)
This PR implements [RFC 101 - System Buildpacks](https://github.com/buildpacks/rfcs/blob/main/text/0101-system-buildpacks.md ) support in pack. 

Systems buildpacks are special buildpacks that are automatically included before (pre) and after (post) the regular buildpacks during the build process, providing platform-level functionality like shell profile scripts, service binding, and other platform-specific capabilities.

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-05 20:41:24 -05:00
Anatoli Babenia d5a88c789d
Make `go build` work without Makefile (#2390)
This merges `version.go` into `pkg/client/client.go`, which is the
only file that uses the it. Then it moves `cmd/pack/main.go` into
root. Now `go build` produces executable `pack` instead of bogus
`pack` with just `version.go`.

No need to specify `./cmd/pack` while compiling anymore.
The version is injected into client directly without extra files.

Signed-off-by: Anatoli Babenia <anatoli@rainforce.org>
Co-authored-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-03 07:47:11 -05:00
dependabot[bot] 1c326701b8
build(deps): bump buildpacks/github-actions from 5.8.10 to 5.8.11 (#2381)
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.10 to 5.8.11.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.10...v5.8.11)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-version: 5.8.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 12:51:11 +00:00
Juan Bustamante 9bf04afbc4
Adding unit tests for issue 2384 (#2391)
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-31 19:04:09 -05:00
Sam baa3edaef1
Do not select tagert from os if arch is specified (#2385)
The current daemonTarget function in pack has a flawed target selection logic that prevents proper multi-architecture builds when not publishing

Signed-off-by: Sam M <git@s-mc.io>
2025-05-31 18:45:04 -05:00
Juan Bustamante 8c7e57ae18
Fix default userns=host behavior to be opt-in (#2386)
* Fix default userns=host behavior to be opt-in

  The flag `--userns-host` is now required to enable the user namespace
  isolation for build containers. By default, this is disabled, which
  resolves the incompatibility with Docker plugins that don't support
  "userns as host" functionality.

  This reverts the default behavior from pack 0.35.0 where user namespace
  isolation was enabled by default, while still allowing users who want
  this feature to opt in.

---------

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-31 11:46:45 -05:00
Tibebe Demissie a4d8f12fd3
Add support for linux-arm64 in brew (#2388)
Signed-off-by: Tibebe Demissie <tib.demissie@gmail.com>
2025-05-29 18:29:27 -05:00
Rashad Sirajudeen e4460f0259
Support docker uri for lifecycle (#2112)
The lifecycle image can be specified as a Docker URI  in the `builder.toml` when creating a builder

---------

Signed-off-by: Rashad Sirajudeen <rashad.20@cse.mrt.ac.lk>
Signed-off-by: Rashad Sirajudeen <rashadsirajudeen@gmail.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
Co-authored-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-27 01:30:03 +00:00
Charles Moulliard 8f3b1d1e6b
Add UBI8 builder as suggested (#2383)
Signed-off-by: cmoulliard <cmoulliard@redhat.com>
2025-05-09 10:30:57 -05:00
dependabot[bot] bace397828
build(deps): bump the go-dependencies group with 6 updates (#2380)
Bumps the go-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.37.0` | `0.38.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.29.0` | `0.30.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.13.0` | `0.14.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.32.0` | `0.33.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.31.0` | `0.32.0` |
| [golang.org/x/text](https://github.com/golang/text) | `0.24.0` | `0.25.0` |


Updates `golang.org/x/crypto` from 0.37.0 to 0.38.0
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.38.0)

Updates `golang.org/x/oauth2` from 0.29.0 to 0.30.0
- [Commits](https://github.com/golang/oauth2/compare/v0.29.0...v0.30.0)

Updates `golang.org/x/sync` from 0.13.0 to 0.14.0
- [Commits](https://github.com/golang/sync/compare/v0.13.0...v0.14.0)

Updates `golang.org/x/sys` from 0.32.0 to 0.33.0
- [Commits](https://github.com/golang/sys/compare/v0.32.0...v0.33.0)

Updates `golang.org/x/term` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/term/compare/v0.31.0...v0.32.0)

Updates `golang.org/x/text` from 0.24.0 to 0.25.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 18:28:54 -05:00
Aidan Delaney 858c5d6ea5
Release on the latest ubuntu (#2378)
* Release on the latest ubuntu (24.10 and 25.04 ) 

Signed-off-by: Aidan Delaney <aidan.delaney@gmail.com>
2025-04-30 12:36:49 +00:00
dependabot[bot] 7497491b13
build(deps): bump github.com/go-git/go-git/v5 (#2373)
Bumps the go-dependencies group with 1 update: [github.com/go-git/go-git/v5](https://github.com/go-git/go-git).


Updates `github.com/go-git/go-git/v5` from 5.15.0 to 5.16.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.15.0...v5.16.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 07:20:31 -05:00
Juan Bustamante 4f12b8398b
Updating default lifecycle version to 0.20.8 (#2356)
* Updating lifecycle to version 0.20.8
* Removing build workflow for WCOW (Windows Container on Windows)
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-04-22 18:41:52 -05:00
Juan Bustamante 4395547d0a
Merge pull request #2354 from yashisrani/upgrade-go1.23.3
Upgrade Go version to 1.24 across project files
2025-04-21 12:02:42 -05:00
Juan Bustamante 94bb792ee1
Merge branch 'main' into upgrade-go1.23.3
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-04-21 11:54:04 -05:00
Yash Israni 9f553983f9 Upgrade Go version to 1.24
Signed-off-by: Yash Israni <yashisrani52@gmail.com>
2025-04-21 09:17:05 +05:30
Juan Bustamante 0660f9e841
Merge pull request #2371 from buildpacks/dependabot/go_modules/go-dependencies-78fd736e21
build(deps): bump the go-dependencies group across 1 directory with 8 updates
2025-04-14 13:18:13 -05:00
dependabot[bot] 9f0825b9da
build(deps): bump the go-dependencies group across 1 directory with 8 updates
Bumps the go-dependencies group with 3 updates in the / directory: [github.com/go-git/go-git/v5](https://github.com/go-git/go-git), [github.com/onsi/gomega](https://github.com/onsi/gomega) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/go-git/go-git/v5` from 5.14.0 to 5.15.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.14.0...v5.15.0)

Updates `github.com/onsi/gomega` from 1.36.3 to 1.37.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.36.3...v1.37.0)

Updates `golang.org/x/crypto` from 0.36.0 to 0.37.0
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0)

Updates `golang.org/x/oauth2` from 0.28.0 to 0.29.0
- [Commits](https://github.com/golang/oauth2/compare/v0.28.0...v0.29.0)

Updates `golang.org/x/sync` from 0.12.0 to 0.13.0
- [Commits](https://github.com/golang/sync/compare/v0.12.0...v0.13.0)

Updates `golang.org/x/sys` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/sys/compare/v0.31.0...v0.32.0)

Updates `golang.org/x/term` from 0.30.0 to 0.31.0
- [Commits](https://github.com/golang/term/compare/v0.30.0...v0.31.0)

Updates `golang.org/x/text` from 0.23.0 to 0.24.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-version: 5.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-version: 1.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-version: 0.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 14:14:33 +00:00
Juan Bustamante aad755c23e
Merge pull request #2364 from AidanDelaney/feat/bump-go-1.24
Bump to go 1.24
2025-04-14 09:10:41 -05:00
Juan Bustamante 9100de595e updating go.mod at tools to 1.24
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-04-11 17:16:40 -05:00
adelaney21 e5f75e1a25 Address linter errors
The updated linter has stricter checks for go 1.24.

Signed-off-by: adelaney21 <adelaney21@bloomberg.net>
2025-04-08 08:14:16 +01:00
adelaney21 ed72404cd9 Bump to go 1.24
Build and lint using go 1.24

Signed-off-by: adelaney21 <adelaney21@bloomberg.net>
2025-04-04 18:50:41 +01:00
Juan Bustamante a1edf2e9e3
Merge pull request #2357 from gogolok/support_freebsd_build_phase
Support FreeBSD build phase
2025-03-26 18:57:39 -05:00
Juan Bustamante f464a628e8
Merge branch 'main' into support_freebsd_build_phase 2025-03-26 18:35:15 -05:00
Juan Bustamante d4d426b9c4
Merge pull request #2361 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.10
build(deps): bump buildpacks/github-actions from 5.8.8 to 5.8.10
2025-03-25 22:01:09 -05:00
dependabot[bot] 4d05893193
build(deps): bump buildpacks/github-actions from 5.8.8 to 5.8.10
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.8 to 5.8.10.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.8...v5.8.10)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-26 02:30:00 +00:00
Juan Bustamante e25934f8de
Merge pull request #2359 from buildpacks/dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.2
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2
2025-03-25 21:28:11 -05:00
Juan Bustamante cfee479afd
Merge pull request #2360 from buildpacks/dependabot/go_modules/go-dependencies-32c6e6cc0e
build(deps): bump the go-dependencies group across 1 directory with 9 updates
2025-03-25 21:27:30 -05:00
dependabot[bot] bee19e4618
build(deps): bump the go-dependencies group across 1 directory with 9 updates
Bumps the go-dependencies group with 4 updates in the / directory: [github.com/onsi/gomega](https://github.com/onsi/gomega), [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec), [golang.org/x/mod](https://github.com/golang/mod) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/onsi/gomega` from 1.36.2 to 1.36.3
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.36.2...v1.36.3)

Updates `github.com/opencontainers/image-spec` from 1.1.0 to 1.1.1
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.1.0...v1.1.1)

Updates `golang.org/x/crypto` from 0.35.0 to 0.36.0
- [Commits](https://github.com/golang/crypto/compare/v0.35.0...v0.36.0)

Updates `golang.org/x/mod` from 0.23.0 to 0.24.0
- [Commits](https://github.com/golang/mod/compare/v0.23.0...v0.24.0)

Updates `golang.org/x/oauth2` from 0.27.0 to 0.28.0
- [Commits](https://github.com/golang/oauth2/compare/v0.27.0...v0.28.0)

Updates `golang.org/x/sync` from 0.11.0 to 0.12.0
- [Commits](https://github.com/golang/sync/compare/v0.11.0...v0.12.0)

Updates `golang.org/x/sys` from 0.30.0 to 0.31.0
- [Commits](https://github.com/golang/sys/compare/v0.30.0...v0.31.0)

Updates `golang.org/x/term` from 0.29.0 to 0.30.0
- [Commits](https://github.com/golang/term/compare/v0.29.0...v0.30.0)

Updates `golang.org/x/text` from 0.22.0 to 0.23.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-25 00:27:59 +00:00
dependabot[bot] 23b0af6edb
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.1...v4.5.2)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-21 22:37:35 +00:00
Juan Bustamante 8aca53e255
Merge pull request #2358 from buildpacks/help-text
Clarify help text for append-image-name-suffix
2025-03-21 15:27:44 -05:00
Natalie Arellano 1e0a1d99f4 Clarify help text for append-image-name-suffix
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2025-03-19 12:10:59 -04:00
Robert Gogolok 19ca0f6297 Support FreeBSD build phase
Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
2025-03-15 12:00:15 +01:00
Juan Bustamante bf1bd85682
Merge pull request #2353 from buildpacks/dependabot/go_modules/golang.org/x/net-0.36.0
build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0
2025-03-14 06:58:18 -05:00
Yash Israni 4b78313297 Upgrade Go version to 1.23.3 across project files
Signed-off-by: Yash Israni <yashisrani52@gmail.com>
2025-03-14 13:11:33 +05:30
dependabot[bot] fb7bb1a32c
build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-13 02:11:55 +00:00
Juan Bustamante c13cab3ca4
Merge pull request #2343 from buildpacks/dependabot/go_modules/go-dependencies-aa86f07501
build(deps): bump the go-dependencies group across 1 directory with 4 updates
2025-03-01 13:06:37 -05:00
dependabot[bot] 74ff1d44ca
build(deps): bump the go-dependencies group across 1 directory with 4 updates
Bumps the go-dependencies group with 2 updates in the / directory: [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/go-git/go-git/v5` from 5.13.2 to 5.14.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.13.2...v5.14.0)

Updates `github.com/google/go-cmp` from 0.6.0 to 0.7.0
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0)

Updates `golang.org/x/crypto` from 0.33.0 to 0.35.0
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.35.0)

Updates `golang.org/x/oauth2` from 0.26.0 to 0.27.0
- [Commits](https://github.com/golang/oauth2/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-01 02:49:53 +00:00
Juan Bustamante 771ba384c1
Merge pull request #2339 from gogolok/go_build_unix
Use `unix` build constraint
2025-02-28 19:20:48 -05:00
Juan Bustamante f8b93d39aa
Merge branch 'main' into go_build_unix 2025-02-28 18:57:38 -05:00
Juan Bustamante 51308d4b2a
Merge pull request #2320 from pacostas/extension-multi-arch
Implementation of multi-arch support for extension packages
2025-02-28 18:56:46 -05:00
Costas Papastathis 912e3a8b93 doc: adjusting documentation to include extension
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-02-25 13:00:27 +01:00
Costas Papastathis eaeaaf5f8a fix: using the KindBuildpack and KindExtension variable instead of hardcoded values
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-02-25 13:00:27 +01:00
Juan Bustamante 6041a952d0
Merge branch 'main' into extension-multi-arch 2025-02-24 07:36:58 -05:00
Robert Gogolok df05dd44b9 Use unix build constraint
Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
2025-02-21 20:13:51 +01:00
Juan Bustamante 4cbc1c8d26
Merge pull request #2335 from buildpacks/dependabot/go_modules/go-dependencies-37a50384ab
build(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1 in the go-dependencies group
2025-02-21 08:55:54 -05:00
dependabot[bot] 4415c41dfb
build(deps): bump github.com/spf13/cobra in the go-dependencies group
Bumps the go-dependencies group with 1 update: [github.com/spf13/cobra](https://github.com/spf13/cobra).


Updates `github.com/spf13/cobra` from 1.8.1 to 1.9.1
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.1...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-21 13:32:29 +00:00
Juan Bustamante 85d4a7c5fe
Merge pull request #2337 from gogolok/remove_obsolete_build_lines
Remove obsolete // +build lines
2025-02-21 07:32:43 -05:00
Robert Gogolok 6658bb06b3 Remove obsolete // +build lines
https://tip.golang.org/doc/go1.18#go-build-lines

Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
2025-02-21 00:11:25 +01:00
Juan Bustamante de21ac70b7
Merge branch 'main' into extension-multi-arch 2025-02-19 07:40:21 -05:00
Juan Bustamante 2016b0e0a1
Merge pull request #2333 from buildpacks/dependabot/go_modules/go-dependencies-57762bd462
build(deps): bump the go-dependencies group across 1 directory with 10 updates
2025-02-12 06:58:56 -05:00
dependabot[bot] 91656ba975
build(deps): bump the go-dependencies group across 1 directory with 10 updates
Bumps the go-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/cli](https://github.com/docker/cli) | `27.5.0+incompatible` | `27.5.1+incompatible` |
| [github.com/docker/docker](https://github.com/docker/docker) | `27.5.0+incompatible` | `27.5.1+incompatible` |
| [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) | `5.13.1` | `5.13.2` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.32.0` | `0.33.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.22.0` | `0.23.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.25.0` | `0.26.0` |



Updates `github.com/docker/cli` from 27.5.0+incompatible to 27.5.1+incompatible
- [Commits](https://github.com/docker/cli/compare/v27.5.0...v27.5.1)

Updates `github.com/docker/docker` from 27.5.0+incompatible to 27.5.1+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.5.0...v27.5.1)

Updates `github.com/go-git/go-git/v5` from 5.13.1 to 5.13.2
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.13.1...v5.13.2)

Updates `golang.org/x/crypto` from 0.32.0 to 0.33.0
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

Updates `golang.org/x/mod` from 0.22.0 to 0.23.0
- [Commits](https://github.com/golang/mod/compare/v0.22.0...v0.23.0)

Updates `golang.org/x/oauth2` from 0.25.0 to 0.26.0
- [Commits](https://github.com/golang/oauth2/compare/v0.25.0...v0.26.0)

Updates `golang.org/x/sync` from 0.10.0 to 0.11.0
- [Commits](https://github.com/golang/sync/compare/v0.10.0...v0.11.0)

Updates `golang.org/x/sys` from 0.29.0 to 0.30.0
- [Commits](https://github.com/golang/sys/compare/v0.29.0...v0.30.0)

Updates `golang.org/x/term` from 0.28.0 to 0.29.0
- [Commits](https://github.com/golang/term/compare/v0.28.0...v0.29.0)

Updates `golang.org/x/text` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 22:55:53 +00:00
Juan Bustamante 3ce022a818
Merge pull request #2295 from joeybrown/stack-warning
Removing validation of deprecated io.buildpacks.stack.id
2025-02-06 11:29:24 -05:00
Joey Brown 86658040cc remove unnecessary variable in unit test
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-02-06 09:39:16 -06:00
Joey Brown bcc0c3b625 remove unnecessary version assignment in unit test
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-02-06 09:35:02 -06:00
Joey Brown 7591928511 remove negation that was causing tests to fail
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-02-05 16:07:20 -06:00
Joey Brown fee6dcb387 fix unit test
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-01-31 17:00:21 -06:00
Joey Brown 7bf3e01154 add version check
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-01-31 16:32:54 -06:00
Joey Brown e8ba441c08 move version check to `before` block
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-01-31 11:37:58 -06:00
Joey Brown 42bcc1dd9d fix acceptance tests
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-01-31 11:37:58 -06:00
Joey Brown aa29846754 pick up where pglushko left off
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2025-01-31 11:37:58 -06:00
Juan Bustamante 5cca9c51a6
Merge pull request #2321 from buildpacks/dependabot/go_modules/go-dependencies-34c374f4f8
build(deps): bump the go-dependencies group across 1 directory with 4 updates
2025-01-21 08:27:06 -05:00
Juan Bustamante adf04bc1ee
Merge pull request #2322 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.8
build(deps): bump buildpacks/github-actions from 5.8.5 to 5.8.8
2025-01-21 07:35:32 -05:00
dependabot[bot] d1c7a79749
build(deps): bump buildpacks/github-actions from 5.8.5 to 5.8.8
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.5 to 5.8.8.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.5...v5.8.8)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 22:28:55 +00:00
Juan Bustamante c7f5b1cc88
Merge pull request #2314 from buildpacks/jjbustamante/fix-pack-2299
Add new flag `--append-image-name-suffix` to append suffix to the image name when pushing a multi-arch buildpack or builder
2025-01-17 09:15:15 -05:00
Juan Bustamante 160b820017 running go mod tidy
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-16 18:03:23 -05:00
Costas Papastathis 3137310cb1 fix:linting and typos
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
Costas Papastathis dbac3d3772 fix: intentation
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
Costas Papastathis 8ca5ea9321 feat: Adding targets and path flags when packaging an extension
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
Costas Papastathis 9caef9000e feat: adding targets on the extension descriptor
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
Costas Papastathis 374b28158d feat: Adding functionality on CopyConfigFiles function to copy an extension .toml file
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
Costas Papastathis 1efd3a3ea7 fix: typo on targets description
Signed-off-by: Costas Papastathis <papastathiscr@gmail.com>
2025-01-16 16:39:02 +01:00
dependabot[bot] 7aca84f1f6
build(deps): bump the go-dependencies group across 1 directory with 4 updates
Bumps the go-dependencies group with 4 updates in the / directory: [github.com/docker/cli](https://github.com/docker/cli), [github.com/docker/docker](https://github.com/docker/docker), [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) and [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry).


Updates `github.com/docker/cli` from 27.4.1+incompatible to 27.5.0+incompatible
- [Commits](https://github.com/docker/cli/compare/v27.4.1...v27.5.0)

Updates `github.com/docker/docker` from 27.4.1+incompatible to 27.5.0+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.4.1...v27.5.0)

Updates `github.com/gdamore/tcell/v2` from 2.8.0 to 2.8.1
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.8.0...v2.8.1)

Updates `github.com/google/go-containerregistry` from 0.20.2 to 0.20.3
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.20.2...v0.20.3)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-16 13:22:56 +00:00
Juan Bustamante 0c432c956f implementing logic for adding tag suffix
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-15 21:02:13 -05:00
Juan Bustamante c49ea0a8e1 fixing formatting issue
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-14 20:37:46 -05:00
Juan Bustamante b99975225f WIP - adding a new flag --append-image-name-suffix to append [os]-[arch]-[variant] to the image name when pushing a multi-arch buildpack or builder
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-14 20:37:46 -05:00
Juan Bustamante 0adeb451bd
Merge pull request #2318 from buildpacks/jjbustamante/fix-pack-2315
Update hardcoded error message to pull images without architecture
2025-01-14 20:34:23 -05:00
Juan Bustamante a2c236549f removing additional string matching
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-13 21:52:36 -05:00
Juan Bustamante 105c2243df Updating hardcoded error message handling when an image was not found in a registry by platform
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-13 21:37:33 -05:00
Juan Bustamante 2f1af856af
Merge pull request #2313 from buildpacks/dependabot/go_modules/go-dependencies-f423d7769f
build(deps): bump the go-dependencies group across 1 directory with 7 updates
2025-01-10 15:22:52 -05:00
dependabot[bot] b79c5ea9d5
build(deps): bump the go-dependencies group across 1 directory with 7 updates
Bumps the go-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) | `2.7.4` | `2.8.0` |
| [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) | `5.13.0` | `5.13.1` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.36.1` | `1.36.2` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.31.0` | `0.32.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.24.0` | `0.25.0` |



Updates `github.com/gdamore/tcell/v2` from 2.7.4 to 2.8.0
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.7.4...v2.8.0)

Updates `github.com/go-git/go-git/v5` from 5.13.0 to 5.13.1
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.13.0...v5.13.1)

Updates `github.com/onsi/gomega` from 1.36.1 to 1.36.2
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.36.1...v1.36.2)

Updates `golang.org/x/crypto` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

Updates `golang.org/x/oauth2` from 0.24.0 to 0.25.0
- [Commits](https://github.com/golang/oauth2/compare/v0.24.0...v0.25.0)

Updates `golang.org/x/sys` from 0.28.0 to 0.29.0
- [Commits](https://github.com/golang/sys/compare/v0.28.0...v0.29.0)

Updates `golang.org/x/term` from 0.27.0 to 0.28.0
- [Commits](https://github.com/golang/term/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 17:28:06 +00:00
Juan Bustamante 33e32aa118
Merge pull request #2312 from buildpacks/dependabot/go_modules/github.com/go-git/go-git/v5-5.13.0
build(deps): bump github.com/go-git/go-git/v5 from 5.12.0 to 5.13.0
2025-01-10 12:26:23 -05:00
Juan Bustamante 5933b139de
Merge branch 'main' into dependabot/go_modules/github.com/go-git/go-git/v5-5.13.0 2025-01-10 12:07:10 -05:00
Juan Bustamante 7dca8954c1 with the new go-git version, this issue was fixed https://github.com/go-git/go-git/pull/1050
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-01-10 10:41:23 -05:00
Juan Bustamante b263fb5694
Merge pull request #2303 from buildpacks/dependabot/github_actions/anchore/scan-action-6
build(deps): bump anchore/scan-action from 5 to 6
2025-01-10 09:14:34 -05:00
dependabot[bot] 887debff90
build(deps): bump github.com/go-git/go-git/v5 from 5.12.0 to 5.13.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.12.0 to 5.13.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.12.0...v5.13.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 13:47:41 +00:00
dependabot[bot] 4f1d65cbbc
build(deps): bump anchore/scan-action from 5 to 6
Bumps [anchore/scan-action](https://github.com/anchore/scan-action) from 5 to 6.
- [Release notes](https://github.com/anchore/scan-action/releases)
- [Changelog](https://github.com/anchore/scan-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anchore/scan-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: anchore/scan-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 13:47:18 +00:00
Juan Bustamante ca31efc25e
Merge pull request #2310 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.5
build(deps): bump buildpacks/github-actions from 5.8.4 to 5.8.5
2025-01-10 08:43:26 -05:00
dependabot[bot] 7ada97f7cc
build(deps): bump buildpacks/github-actions from 5.8.4 to 5.8.5
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.4 to 5.8.5.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.4...v5.8.5)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 22:19:45 +00:00
Juan Bustamante 78e6a7fa01
Merge pull request #2307 from buildpacks/deps/issue-2304
(deps): Update x/net library to v0.33.0
2024-12-26 08:18:26 -05:00
Juan Bustamante b4719aa183 Updating x/net library to v0.33.0
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-12-26 07:43:33 -05:00
Juan Bustamante 87ef7fb319
Merge pull request #2306 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.4
build(deps): bump buildpacks/github-actions from 5.8.3 to 5.8.4
2024-12-24 11:03:48 -05:00
dependabot[bot] f4c09fa465
build(deps): bump buildpacks/github-actions from 5.8.3 to 5.8.4
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.3 to 5.8.4.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.3...v5.8.4)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-24 12:47:18 +00:00
Juan Bustamante 41e2b30fd1
Merge pull request #2305 from buildpacks/dependabot/go_modules/go-dependencies-0eae3ea95f
build(deps): bump the go-dependencies group with 2 updates
2024-12-24 07:45:46 -05:00
dependabot[bot] d76dc1b8dc
build(deps): bump the go-dependencies group with 2 updates
Bumps the go-dependencies group with 2 updates: [github.com/docker/cli](https://github.com/docker/cli) and [github.com/docker/docker](https://github.com/docker/docker).


Updates `github.com/docker/cli` from 27.4.0+incompatible to 27.4.1+incompatible
- [Commits](https://github.com/docker/cli/compare/v27.4.0...v27.4.1)

Updates `github.com/docker/docker` from 27.4.0+incompatible to 27.4.1+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.4.0...v27.4.1)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 22:26:11 +00:00
Juan Bustamante 852fcaa56a
Merge pull request #2302 from buildpacks/dependabot/go_modules/go-dependencies-064c2626f3
build(deps): bump the go-dependencies group with 2 updates
2024-12-17 09:13:24 -05:00
dependabot[bot] 8d60dc1892
build(deps): bump the go-dependencies group with 2 updates
Bumps the go-dependencies group with 2 updates: [github.com/onsi/gomega](https://github.com/onsi/gomega) and [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `github.com/onsi/gomega` from 1.36.0 to 1.36.1
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.36.0...v1.36.1)

Updates `golang.org/x/crypto` from 0.30.0 to 0.31.0
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 22:04:24 +00:00
Juan Bustamante c5fadcd444
Merge pull request #2298 from buildpacks/dependabot/go_modules/go-dependencies-91cddda52f
build(deps): bump the go-dependencies group with 7 updates
2024-12-10 07:05:08 -05:00
dependabot[bot] 2a6922423d
build(deps): bump the go-dependencies group with 7 updates
Bumps the go-dependencies group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/cli](https://github.com/docker/cli) | `27.3.1+incompatible` | `27.4.0+incompatible` |
| [github.com/docker/docker](https://github.com/docker/docker) | `27.3.1+incompatible` | `27.4.0+incompatible` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.29.0` | `0.30.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.9.0` | `0.10.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.27.0` | `0.28.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.26.0` | `0.27.0` |
| [golang.org/x/text](https://github.com/golang/text) | `0.20.0` | `0.21.0` |


Updates `github.com/docker/cli` from 27.3.1+incompatible to 27.4.0+incompatible
- [Commits](https://github.com/docker/cli/compare/v27.3.1...v27.4.0)

Updates `github.com/docker/docker` from 27.3.1+incompatible to 27.4.0+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.3.1...v27.4.0)

Updates `golang.org/x/crypto` from 0.29.0 to 0.30.0
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.30.0)

Updates `golang.org/x/sync` from 0.9.0 to 0.10.0
- [Commits](https://github.com/golang/sync/compare/v0.9.0...v0.10.0)

Updates `golang.org/x/sys` from 0.27.0 to 0.28.0
- [Commits](https://github.com/golang/sys/compare/v0.27.0...v0.28.0)

Updates `golang.org/x/term` from 0.26.0 to 0.27.0
- [Commits](https://github.com/golang/term/compare/v0.26.0...v0.27.0)

Updates `golang.org/x/text` from 0.20.0 to 0.21.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 22:26:18 +00:00
Juan Bustamante 163db98749
Merge pull request #2296 from gogolok/buildpack_new_help_wording
Correct wording for `buildpack new` targets flag
2024-12-05 07:26:02 -05:00
Robert Gogolok b689e6acb8 Correct wording for `buildpack new` targets flag
Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
Co-authored-by: Aidan Delaney <aidan.delaney@gmail.com>
2024-12-04 21:26:42 +01:00
Juan Bustamante a476b975d2
Merge pull request #2291 from buildpacks/dependabot/go_modules/go-dependencies-34ba330fac
build(deps): bump the go-dependencies group across 1 directory with 4 updates
2024-12-03 21:15:23 -05:00
dependabot[bot] 65375598e2
build(deps): bump the go-dependencies group across 1 directory with 4 updates
Bumps the go-dependencies group with 2 updates in the / directory: [github.com/onsi/gomega](https://github.com/onsi/gomega) and [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `github.com/onsi/gomega` from 1.35.1 to 1.36.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.35.1...v1.36.0)

Updates `golang.org/x/crypto` from 0.28.0 to 0.29.0
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.29.0)

Updates `golang.org/x/term` from 0.25.0 to 0.26.0
- [Commits](https://github.com/golang/term/compare/v0.25.0...v0.26.0)

Updates `golang.org/x/text` from 0.19.0 to 0.20.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 01:49:32 +00:00
Juan Bustamante 6baf6e2c29
Merge pull request #2297 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.3
build(deps): bump buildpacks/github-actions from 5.8.1 to 5.8.3
2024-12-03 20:47:35 -05:00
Juan Bustamante 9a987fe642
Merge pull request #2294 from joeybrown/tests-arm-64
make sure acceptance tests pass on arm64
2024-12-03 20:22:04 -05:00
dependabot[bot] 14aa2f755d
build(deps): bump buildpacks/github-actions from 5.8.1 to 5.8.3
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.1 to 5.8.3.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.1...v5.8.3)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-02 23:29:55 +00:00
Joey Brown 62b52ef156 acceptance tests on arm64
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
2024-12-02 10:56:17 -06:00
Natalie Arellano 92bc87b297
Merge pull request #2284 from buildpacks/log/containerd
Emit a performance warning if containerd is enabled and we're exporting to the daemon
2024-11-14 13:40:02 -05:00
Natalie Arellano 1f7e0c8bcb Emit a performance warning if containerd is enabled and we're exporting to the daemon
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-14 11:07:26 -05:00
Juan Bustamante be2c8be464
Merge pull request #2281 from buildpacks/dependabot/go_modules/go-dependencies-6a50f88c84
build(deps): bump the go-dependencies group across 1 directory with 9 updates
2024-11-13 15:47:14 -05:00
Juan Bustamante ddc3fd345f
Merge pull request #2282 from buildpacks/fix/lcow-acceptance
Cleanup after running acceptance tests
2024-11-13 15:31:53 -05:00
dependabot[bot] 8b3d7b34d8
build(deps): bump the go-dependencies group across 1 directory with 9 updates
Bumps the go-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/docker](https://github.com/docker/docker) | `27.0.3+incompatible` | `27.3.1+incompatible` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.34.2` | `1.35.1` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.21.0` | `0.22.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.23.0` | `0.24.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.8.0` | `0.9.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.26.0` | `0.27.0` |



Updates `github.com/docker/docker` from 27.0.3+incompatible to 27.3.1+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v27.0.3...v27.3.1)

Updates `github.com/onsi/gomega` from 1.34.2 to 1.35.1
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.34.2...v1.35.1)

Updates `golang.org/x/crypto` from 0.26.0 to 0.28.0
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.28.0)

Updates `golang.org/x/mod` from 0.21.0 to 0.22.0
- [Commits](https://github.com/golang/mod/compare/v0.21.0...v0.22.0)

Updates `golang.org/x/oauth2` from 0.23.0 to 0.24.0
- [Commits](https://github.com/golang/oauth2/compare/v0.23.0...v0.24.0)

Updates `golang.org/x/sync` from 0.8.0 to 0.9.0
- [Commits](https://github.com/golang/sync/compare/v0.8.0...v0.9.0)

Updates `golang.org/x/sys` from 0.26.0 to 0.27.0
- [Commits](https://github.com/golang/sys/compare/v0.26.0...v0.27.0)

Updates `golang.org/x/term` from 0.23.0 to 0.25.0
- [Commits](https://github.com/golang/term/compare/v0.23.0...v0.25.0)

Updates `golang.org/x/text` from 0.17.0 to 0.19.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.17.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-13 19:43:31 +00:00
Juan Bustamante 7d17694115
Merge branch 'main' into fix/lcow-acceptance 2024-11-13 14:37:47 -05:00
Natalie Arellano 08abcc433e
Merge pull request #2185 from hhiroshell/fix-pack-1218
Update image references to use fully qualified names.
2024-11-13 13:04:20 -05:00
Natalie Arellano b3edf6be08 Cleanup after running acceptance tests
While we try to cleanup after ourselves, it doesn't always work.
This will save us from having to RDP into the LCOW worker every so often

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-13 12:59:44 -05:00
Natalie Arellano fdde5f9f81
Merge branch 'main' into fix-pack-1218 2024-11-13 12:17:32 -05:00
Natalie Arellano 84f661ddef
Merge pull request #2273 from buildpacks/bump-deps
Bump deps
2024-11-13 12:16:18 -05:00
Natalie Arellano 68447dd7bd Try lifecycle binary 0.20.3
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-13 11:50:34 -05:00
Natalie Arellano 83a1258651 Bump lifecycle binary version also
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-13 11:14:02 -05:00
Natalie Arellano e2b61e4ca5
Merge branch 'main' into bump-deps 2024-11-13 10:27:43 -05:00
Juan Bustamante 8ce89e8919
Merge branch 'main' into fix-pack-1218 2024-11-13 09:19:00 -05:00
Juan Bustamante 280cd56e7e Fixing lifecycle validation to use fully qualified names
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-11-13 08:19:45 -05:00
Juan Bustamante 466439d7ea
Merge pull request #2266 from sap-contributions/match-trusted-builders
Allow trusted builders by repo or tag
2024-11-13 07:52:39 -05:00
Johannes Dillmann 571820403b Allow trusted builders by repo and tag
Signed-off-by: Johannes Dillmann <j.dillmann@sap.com>
2024-11-13 13:31:03 +01:00
Juan Bustamante 2f2cc9ae11
Merge branch 'main' into fix-pack-1218
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-11-13 07:21:06 -05:00
Natalie Arellano c579063944
Merge branch 'main' into bump-deps 2024-11-12 16:53:57 -05:00
Natalie Arellano 93b5d66f86
Merge pull request #2279 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.1
build(deps): bump buildpacks/github-actions from 5.8.0 to 5.8.1
2024-11-12 16:48:00 -05:00
Natalie Arellano 3817b995b8 Use released lifecycle
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-12 16:42:10 -05:00
dependabot[bot] 19d9ac309f
build(deps): bump buildpacks/github-actions from 5.8.0 to 5.8.1
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.8.0 to 5.8.1.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.8.0...v5.8.1)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 22:53:11 +00:00
Juan Bustamante 60a2238963
Merge pull request #2274 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.8.0
build(deps): bump buildpacks/github-actions from 5.7.4 to 5.8.0
2024-11-05 08:28:51 -05:00
dependabot[bot] 80c4615d2f
build(deps): bump buildpacks/github-actions from 5.7.4 to 5.8.0
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.7.4 to 5.8.0.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.7.4...v5.8.0)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-05 12:59:43 +00:00
Juan Bustamante 5805b38e02
Merge pull request #2277 from buildpacks/dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.1
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1
2024-11-05 07:57:53 -05:00
dependabot[bot] 07ea3df77e
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-04 23:45:43 +00:00
Natalie Arellano 80e9e0a8e7 Update actions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-01 15:29:32 -04:00
Natalie Arellano c3c07c293d Pin BurntSushi/toml as test failures seem related to https://github.com/BurntSushi/toml/issues/417
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-11-01 15:02:17 -04:00
Natalie Arellano 9f8c95bc44 FIXME: update lifecycle (to non-released version) so that we can bump docker
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-10-28 15:30:42 -04:00
Natalie Arellano be3a7a7cea Bump deps and run tidy
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-10-28 14:58:14 -04:00
Natalie Arellano b59c10dd67 Fix lint
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-10-28 14:50:17 -04:00
Natalie Arellano fe6a1e57e7 Update go and run tidy
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-10-28 14:39:47 -04:00
Natalie Arellano 270eb1ed67
Merge pull request #2256 from hhiroshell/fix-pack-2231
Make the `pack build` warn that the positional argument will not be treated as the source directory path
2024-10-25 12:39:30 -04:00
Hiroshi Hayakawa 3aee96ea4f Use an existing directory instead of creating and deleting directories for each '--path' flag case to ensure no temp directories are left behind in case of a test failure.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-10-04 22:48:41 +09:00
Juan Bustamante 98c32ed908
Merge branch 'main' into fix-pack-2231 2024-09-27 07:56:49 -05:00
Juan Bustamante 4ffdb5e09c
Merge pull request #2246 from buildpacks/dependabot/go_modules/github.com/docker/docker-26.1.5incompatible
build(deps): bump github.com/docker/docker from 26.1.4+incompatible to 26.1.5+incompatible
2024-09-18 21:09:25 -05:00
dependabot[bot] 87ab70db6d
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 26.1.4+incompatible to 26.1.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.4...v26.1.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 01:39:39 +00:00
Juan Bustamante f987840cd5
Merge pull request #2258 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.7.4
build(deps): bump buildpacks/github-actions from 5.5.4 to 5.7.4
2024-09-18 20:38:28 -05:00
dependabot[bot] 4d6b7633f4
build(deps): bump buildpacks/github-actions from 5.5.4 to 5.7.4
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.5.4 to 5.7.4.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.5.4...v5.7.4)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-19 01:15:17 +00:00
Juan Bustamante d4d52fd3c5
Merge pull request #2215 from buildpacks/dependabot/github_actions/anchore/scan-action-4
build(deps): bump anchore/scan-action from 3 to 4
2024-09-18 20:14:34 -05:00
Juan Bustamante d97a17c84c
Merge branch 'main' into dependabot/github_actions/anchore/scan-action-4 2024-09-18 18:48:54 -05:00
hhiroshell 569e992b95 avoid using os.MkdirTemp() to prevent test failures on macOS
Signed-off-by: hhiroshell <hhiroshell@gmail.com>
2024-09-17 23:11:25 +09:00
Hiroshi Hayakawa 59a0abf322 rephrase the test description
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-09-17 12:56:42 +09:00
Hiroshi Hayakawa cee65f255c Make it warns only when a local path with the same string as the specified image name exists
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-09-17 12:47:27 +09:00
Natalie Arellano e545151a87
Merge pull request #2260 from buildpacks/fix/delete-ephemeral-builder
Fix deletion of ephemeral builder
2024-09-11 17:45:07 -04:00
Natalie Arellano 97c942249b
Merge branch 'main' into fix/delete-ephemeral-builder 2024-09-11 16:15:38 -04:00
Natalie Arellano df70f4cd1f
Merge pull request #2261 from fumblehool/fix/warning-buildpack-toml
Don't warn about clear-env key while parsing buildpack.toml as this is actually expected.
2024-09-11 12:42:49 -04:00
Damanpreet Singh 9afe64b9dc Don't warn about clear-env key while parsing buildpack.toml as this is actually expected.
Fixes https://github.com/buildpacks/pack/issues/2253

Signed-off-by: Damanpreet Singh <daman.4880@gmail.com>
2024-09-11 20:47:28 +05:30
Natalie Arellano 86b4bf3bfc
Merge pull request #2245 from keshavdalmia10/cache_flag_case_sensitivity_2229
handled case sensitivity
2024-09-10 16:52:01 -04:00
Natalie Arellano 0927dde4c2
Merge branch 'main' into cache_flag_case_sensitivity_2229 2024-09-10 16:27:54 -04:00
Natalie Arellano 620ee480f4 Fix deletion of ephemeral builder
`createEphemeralBuilder` mutates the provided `rawBuilderImage`, so we must save the image name
before this method is called.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-09-05 13:16:43 -04:00
Hiroshi Hayakawa 66982d0389 Improve descriptions for some test cases.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-09-05 20:09:54 +09:00
Hiroshi Hayakawa 7066e525f3 Add a test case for when the 'pack build' is called with the '--path' flag.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-09-05 20:08:52 +09:00
Hiroshi Hayakawa 0a5cf9ce91 Make the 'pack build' command warn that the positional argument will not be treated as the source directory path.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-09-02 12:44:44 +09:00
keshav 1e26662c1a handled case sensitivity
Signed-off-by: Keshav Dalmia <keshavdalmia10@gmail.com>
2024-08-09 23:44:30 +05:30
Natalie Arellano 3a22a7ffef
Merge pull request #2241 from buildpacks/fix/network-name
Fix ephemeral bridge network name for podman
2024-08-05 12:02:05 -04:00
Natalie Arellano b44f845532 Add retries for docker network remove
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-08-05 11:11:18 -04:00
Natalie Arellano 56f4bf54df Fix ephemeral bridge network name for podman
See https://github.com/buildpacks/pack/issues/2219#issuecomment-2260923340

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-08-05 11:11:18 -04:00
Natalie Arellano 5d0687f636
Merge pull request #2236 from buildpacks/bump-lifecycle
Bump default lifecycle binary version from 0.19.6 to 0.20.0
2024-07-31 15:31:04 -04:00
dependabot[bot] 68b43d7074
build(deps): bump anchore/scan-action from 3 to 4
Bumps [anchore/scan-action](https://github.com/anchore/scan-action) from 3 to 4.
- [Release notes](https://github.com/anchore/scan-action/releases)
- [Changelog](https://github.com/anchore/scan-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anchore/scan-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: anchore/scan-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 17:23:14 +00:00
Natalie Arellano 004deb6404
Merge pull request #2240 from hhiroshell/fix-pack-2111-2
Make the docker Image `pack:base` built on the same base image as `pack:x.x.x-base`
2024-07-31 13:22:28 -04:00
Hiroshi Hayakawa e885ffe48e Fix the helper script for testing the GitHub Action workflows on forked
repositories.

Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-30 14:25:02 +09:00
Hiroshi Hayakawa 0cda9d0022 Add ${{ matrix.suffix }} to the source tag for retagging.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-30 13:50:18 +09:00
Natalie Arellano a651c5dac4
Merge pull request #2234 from sap-contributions/support-oci-mediatype
Support OCI layouts with `application/vnd.oci.image.manifest.v1+json` media type
2024-07-29 18:07:08 -04:00
Natalie Arellano c253591be9
Merge pull request #2238 from anthonydahanne/2237-workspace-sensitive
Fix #2237: consider /workspace as a sensitive dir
2024-07-29 14:57:20 -04:00
Natalie Arellano 5821ccd000
Merge branch 'main' into 2237-workspace-sensitive 2024-07-29 11:48:00 -04:00
Natalie Arellano 3902749389
Merge pull request #2235 from hhiroshell/fix-pack-2111-1
Add a helper script for testing GitHub Actions on forked repositories
2024-07-29 11:46:06 -04:00
Anthony Dahanne 825617be7d Fix buildpacks#2237: consider /workspace as a sensitive dir
Signed-off-by: Anthony Dahanne <anthony.dahanne@gmail.com>
2024-07-29 00:03:26 -04:00
Pavel Busko 0754b56695 Support OCI layouts with application/vnd.oci.image.manifest.v1+json media type
Signed-off-by: Pavel Busko <pavel.busko@sap.com>
2024-07-26 09:11:54 +02:00
Hiroshi Hayakawa c45a96cc5c
Merge branch 'main' into fix-pack-2111-1 2024-07-26 10:56:05 +09:00
Natalie Arellano 2aa2cf58e3
Merge pull request #2230 from AidanDelaney/fix/2228-trust-additional-buildpacks
Trust buildpacks in addition to those on the builder
2024-07-25 10:38:45 -04:00
Natalie Arellano 9a22a21bd5 Bump default lifecycle binary version from 0.19.6 to 0.20.0
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-25 10:32:49 -04:00
Hiroshi Hayakawa 6680c0e03b
Fix variable name.
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-25 18:28:05 +09:00
Hiroshi Hayakawa 3f3345847b
Fix variable name.
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-25 18:27:52 +09:00
hhiroshell 75aa273cc3 Update the DEVELOPMENT.md
Signed-off-by: hhiroshell <hhiroshell@gmail.com>
2024-07-24 17:54:50 +09:00
hhiroshell 23326a8a8e Fix variable name mismatch.
Signed-off-by: hhiroshell <hhiroshell@gmail.com>
2024-07-24 11:11:39 +09:00
hhiroshell dce5257689 Finish the helper script for testing GitHub Action workflows on forked repository.
Signed-off-by: hhiroshell <hhiroshell@gmail.com>
2024-07-24 10:56:17 +09:00
Hiroshi Hayakawa 15dc0e92a0 Add a draft helper script for testing GitHub Action workflows on forked repository.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-23 14:33:28 +09:00
Aidan Delaney b195e95e2f Add --trust-extra-buildpacks option
Use the term "extra buildpacks" instead of "additional
buildpacks"

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2024-07-22 05:58:24 +01:00
Aidan Delaney 30704ba80b Trust buildpacks in addition to those on the builder
Trust buildpacks provided when `--buildpack` is provided on the
command line.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2024-07-19 07:10:06 +01:00
Natalie Arellano f6b450fc1a
Merge pull request #2217 from buildpacks/security-fixes
Fixes from security review
2024-07-17 10:58:31 -04:00
Natalie Arellano 13ca5376ba
Merge pull request #48 from buildpacks/pack-volume-key
When creating volume caches, incorporate "pack volume key" to avoid name collisions
2024-07-16 10:11:46 -04:00
Natalie Arellano 331ac6d0e7 Log a warning (once) when PACK_VOLUME_KEY is unset and running in a container
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-15 16:33:07 -04:00
Natalie Arellano ba4bee8682 Merge branch 'main' into pack-volume-key 2024-07-15 15:51:06 -04:00
Natalie Arellano c1a1382c23
Merge pull request #50 from buildpacks/ephemeral-network
Launch build containers in a separate ephemeral Docker bridge network
2024-07-11 15:03:05 -04:00
Natalie Arellano 72ffc75dba
Merge pull request #31 from buildpacks/fix/warn-container-daemon
Warn if NOT --pull-policy=always in container
2024-07-11 09:48:17 -04:00
Aidan Delaney 57c03686b0
Merge pull request #47 from buildpacks/feat/validate-image-name-on-daemon
Validate image name
2024-07-11 09:13:56 +01:00
Aidan Delaney 8c60837e56 Merge branch 'security-review' into feat/validate-image-name-on-daemon 2024-07-11 09:11:53 +01:00
Aidan Delaney 12049345af Validate build image name
Ensure that the user has not requested to build an
image with the same name as a builder of a
lifecyle image.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
Signed-off-by: Aidan Delaney <aidan.delaney@gmail.com>
Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2024-07-11 09:07:30 +01:00
Natalie Arellano 98ffc46188 Try to fix wcow
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-10 11:58:12 -04:00
Natalie Arellano 16f4932dc2
Merge pull request #30 from buildpacks/fix/untrusted-flow
Use the untrusted flow when buildpacks are added to a trusted builder
2024-07-10 11:57:18 -04:00
Natalie Arellano dded2a0e1d
Merge pull request #29 from buildpacks/fix/userns
Run build containers with updated settings
2024-07-10 11:57:03 -04:00
Natalie Arellano 25f454e577 Fix macos by not requiring real docker client for lifecycle execution unit tests
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-10 11:14:43 -04:00
Natalie Arellano 456342bed0 Merge branch 'security-review' into fix/warn-container-daemon
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-10 10:57:13 -04:00
Natalie Arellano 5dbbb52ad9 Merge branch 'security-review' into fix/untrusted-flow
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-10 10:56:56 -04:00
Natalie Arellano 2049ae2266 Run build containers with security-opt field set to no-new-privileges=true
Fixes https://github.com/buildpacks/pack-private/issues/22

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-10 10:56:23 -04:00
Natalie Arellano cbc880a9b0
Merge pull request #2211 from buildpacks/bump-deps
Bump deps
2024-07-09 16:01:02 -04:00
Natalie Arellano 132f8320e8 Bump deps
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-09 13:20:40 -04:00
Natalie Arellano 21a8d81e51
Merge pull request #2188 from anjannath/issue_2181
Remove github actions job for pack-cli arch package
2024-07-09 12:44:35 -04:00
Natalie Arellano 697ed485cf
Merge branch 'main' into issue_2181 2024-07-09 12:23:45 -04:00
Natalie Arellano 0b0614b2df
Merge pull request #2203 from hhiroshell/fix-pack-2199
Update the Google builder in the list of known builders.
2024-07-09 12:23:27 -04:00
Natalie Arellano 2c3d5f6888
Merge branch 'main' into fix-pack-2199 2024-07-09 11:43:07 -04:00
Natalie Arellano 7d3a810d73
Merge pull request #2205 from colincasey/fix_trusting_of_trusted_builders
Trusted builders fix
2024-07-09 11:42:54 -04:00
Natalie Arellano 2404f2e92d
Merge branch 'main' into fix_trusting_of_trusted_builders 2024-07-09 10:28:51 -04:00
Hiroshi Hayakawa 80cf0cae0e
Merge branch 'main' into fix-pack-2199 2024-07-09 10:33:44 +09:00
Natalie Arellano 98c98da526
Merge pull request #2196 from buildpacks/lazy-ephemeral-builder
Don't create an ephemeral builder if it isn't truly needed
2024-07-08 14:00:40 -04:00
Colin Casey 7e71a2e2b8
Merge branch 'main' into fix_trusting_of_trusted_builders 2024-07-08 14:57:32 -03:00
Natalie Arellano 376513b9ac
Merge branch 'main' into lazy-ephemeral-builder 2024-07-08 13:13:43 -04:00
Colin Casey 9bd0d3aa0a Fix assertion in `EqBuildOptionsWithTrustedBuilder`
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-07-08 13:06:48 -03:00
Natalie Arellano 2fa3260e1a
Merge pull request #2197 from buildpacks/fix/warning-project-toml
When parsing project.toml, don't warn about unexpected keys that are actually expected
2024-07-08 11:26:28 -04:00
Natalie Arellano 085b288180
Merge branch 'main' into fix/warning-project-toml 2024-07-08 10:27:58 -04:00
Colin Casey 4d4dd5c820 Added test for known trusted but not suggested builder
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-07-08 10:53:17 -03:00
Hiroshi Hayakawa 446a563894
Merge branch 'main' into fix-pack-2199 2024-07-08 21:30:42 +09:00
Juan Bustamante 0ad4842c9f
Merge pull request #2206 from buildpacks/dependabot/go_modules/go-dependencies-dbfe555f0c
build(deps): bump the go-dependencies group across 1 directory with 8 updates
2024-07-07 15:41:46 -05:00
dependabot[bot] 0214185f32
build(deps): bump the go-dependencies group across 1 directory with 8 updates
Bumps the go-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) | `0.19.1` | `0.19.2` |
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | `1.8.0` | `1.8.1` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.23.0` | `0.25.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.17.0` | `0.19.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.20.0` | `0.21.0` |



Updates `github.com/google/go-containerregistry` from 0.19.1 to 0.19.2
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.19.1...v0.19.2)

Updates `github.com/spf13/cobra` from 1.8.0 to 1.8.1
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

Updates `golang.org/x/crypto` from 0.23.0 to 0.25.0
- [Commits](https://github.com/golang/crypto/compare/v0.23.0...v0.25.0)

Updates `golang.org/x/mod` from 0.17.0 to 0.19.0
- [Commits](https://github.com/golang/mod/compare/v0.17.0...v0.19.0)

Updates `golang.org/x/oauth2` from 0.20.0 to 0.21.0
- [Commits](https://github.com/golang/oauth2/compare/v0.20.0...v0.21.0)

Updates `golang.org/x/sys` from 0.20.0 to 0.22.0
- [Commits](https://github.com/golang/sys/compare/v0.20.0...v0.22.0)

Updates `golang.org/x/term` from 0.20.0 to 0.22.0
- [Commits](https://github.com/golang/term/compare/v0.20.0...v0.22.0)

Updates `golang.org/x/text` from 0.15.0 to 0.16.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-07 18:14:55 +00:00
Colin Casey a55703b5fa Empty commit
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-07-06 10:57:38 -03:00
Colin Casey 133833c985 Added test for trusted/untrusted builders in build command
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-07-05 17:01:24 -03:00
Colin Casey 1e79cc8123 With the changes introduced in #2043 for separating suggested builders and trusted builders, there were several places that still had logic referencing suggested builders in the trusted context. This PR updates those code paths to only consider trusted builders and extracts out a shared function `IsKnownTrustedBuilder` that can be used for "is this a trusted builder" checks.
Fixes #2198

Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-07-04 16:06:55 -03:00
Hiroshi Hayakawa 070d7769a0 Fix the broken acceptance tests.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-04 21:03:52 +09:00
Hiroshi Hayakawa a49d9c3999
Align the description of the Google builder with the upstream manifest.
Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-04 21:14:33 +09:00
Hiroshi Hayakawa dd3971bab2 Fix broken tests.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-04 20:13:45 +09:00
Hiroshi Hayakawa d4d4614eb6 Update the version of the Google builder in the list of known builders.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-07-04 19:20:21 +09:00
Natalie Arellano 423f596671 Don't cleanup the ephemeral builder if it is the original builder
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-02 17:22:23 -04:00
Natalie Arellano 61a7f50bdb When parsing project.toml, don't warn about unexpected keys that are actually expected
Fixes https://github.com/buildpacks/pack/issues/2192

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-02 16:02:05 -04:00
Natalie Arellano 55f7f36825 Don't create an ephemeral builder if it isn't truly needed
Fixes https://github.com/buildpacks/pack/issues/2195

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-02 13:34:50 -04:00
Natalie Arellano 10aa579c15 Launch build containers in a separate ephemeral Docker bridge network
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-07-01 12:19:03 -04:00
Natalie Arellano 8e0d859317 Resolve some TODOs
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-06-27 15:01:39 -04:00
Natalie Arellano 1cc1cc8dd9 Initial implementation (still has TODOs)
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-06-27 14:40:29 -04:00
Anjan Nath 538d57290b Remove github actions job for pack-cli arch package
The `pack-cli` package has been adopted by the arch linux
extra repository: https://archlinux.org/packages/extra/x86_64/pack-cli/
and hence the namespace has been removed from aur

Signed-off-by: Anjan Nath <kaludios@gmail.com>
2024-06-12 12:13:41 +05:30
Hiroshi Hayakawa e8a0c7f10e Update image references in internal documents and ci settings to use fully qualified names.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-06-10 14:20:09 +09:00
Hiroshi Hayakawa 59fcbcb092 Update references to lifecycle image to use fully qualified image name.
Signed-off-by: Hiroshi Hayakawa <hhiroshell@gmail.com>
2024-06-10 14:00:06 +09:00
Natalie Arellano ce8db3c5d1
Merge pull request #2179 from buildpacks/fix/imgutil
Bump imgutil to pick up fixes for containerd and podman
2024-06-05 11:29:29 -04:00
Natalie Arellano 29f5c9f88c Bump imgutil to pick up fixes for containerd and podman
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-06-05 11:01:05 -04:00
Natalie Arellano cffbe0b777
Merge pull request #2178 from edmorley/heroku-builder-24
Add `heroku/builder:24` as a trusted + suggested builder
2024-06-05 10:48:05 -04:00
Ed Morley 6c4f1d94cd
Add `heroku/builder:24` as a trusted + suggested builder
We have just completed our new `heroku/builder:24` builder,
which is based upon Ubuntu 24.04 and is also our first
multi-architecture (AMD64+ARM64) builder.

As such, I have:
- Added `heroku/builder:24` as a trusted+suggested builder
- Changed the existing `heroku/builder:22` builder entry so
  that it is now just trusted, and not also suggested (since we
  want to encourage users to use the newer builder, especially
  since it's now multi-arch).
- Re-synced the builder description metadata here with what's in
  our `builder.toml` configs. (The descriptions in this repo are
  what gets used in offline mode, when Pack CLI can't pull the
  latest image description from the image labels on the registry.)

See:
https://github.com/heroku/cnb-builder-images/pull/534
https://github.com/heroku/cnb-builder-images/blob/main/builder-20/builder.toml
https://github.com/heroku/cnb-builder-images/blob/main/builder-22/builder.toml
https://github.com/heroku/cnb-builder-images/blob/main/builder-24/builder.toml

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2024-06-05 11:35:29 +01:00
Juan Bustamante 98f0eb496f
Merge pull request #2171 from buildpacks/chore/fix-delivery-for-pack-0_34_0
chore: updating docker base image to use go 1.22
2024-05-30 13:37:59 -05:00
Juan Bustamante a7d1cc42e6
Updating the docker base image to use go 1.22, also removing ubuntu lunar becase it is deprecated, we don't need to support it anymore
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-30 12:04:19 -05:00
Juan Bustamante b8f5fc8dcc
Merge pull request #2166 from buildpacks/chore/fix-macos-binaries
Building darwin arm64 binaries by default on CI and amd64 during releases
2024-05-24 11:07:22 -05:00
Juan Bustamante e792c69220
Since macos14 the github runner is arm64
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-24 10:11:20 -05:00
Natalie Arellano f56bca579c
Merge pull request #2165 from buildpacks/fix/extensions-docker-25
Fix https://github.com/buildpacks/pack/issues/2164
2024-05-23 12:02:47 -04:00
Natalie Arellano 113ba0c94b Fix https://github.com/buildpacks/pack/issues/2164
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-23 11:34:55 -04:00
Juan Bustamante 4917cee80a
Merge pull request #2158 from buildpacks/dependabot/go_modules/go-dependencies-4bef9954a0
build(deps): bump the go-dependencies group across 1 directory with 2 updates
2024-05-23 09:39:56 -05:00
dependabot[bot] e80b1190b8
build(deps): bump the go-dependencies group across 1 directory with 2 updates
Bumps the go-dependencies group with 2 updates in the / directory: [github.com/docker/cli](https://github.com/docker/cli) and [github.com/docker/docker](https://github.com/docker/docker).


Updates `github.com/docker/cli` from 26.1.1+incompatible to 26.1.3+incompatible
- [Commits](https://github.com/docker/cli/compare/v26.1.1...v26.1.3)

Updates `github.com/docker/docker` from 26.1.1+incompatible to 26.1.3+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v26.1.1...v26.1.3)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 14:15:54 +00:00
Juan Bustamante ebea3ae82e
Merge pull request #2162 from buildpacks/build-with-platform
Support `pack build --platform`
2024-05-23 09:14:06 -05:00
Natalie Arellano 89cb617380 Dedup test setup
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-23 09:43:56 -04:00
Natalie Arellano 08995083ff Remove unneeded things
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-23 09:37:06 -04:00
Natalie Arellano 863eb981d4 Merge branch 'main' into build-with-platform
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-22 17:10:06 -04:00
Natalie Arellano 7306444911
Merge pull request #2086 from jjbustamante/jjbustamante/poc-multiarch-rfc
Implementation of the multi-platform support for builders and buildpack packages RFC 0128
2024-05-22 15:46:04 -04:00
Juan Bustamante ae8e20b985
fixing windows acceptance test
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-22 13:20:39 -05:00
Juan Bustamante 03a0d8f5a4
adding tests for builder create and improving logging messages
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-22 12:40:44 -05:00
Juan Bustamante 574b3a22fa
removing comment and logging
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-22 08:41:28 -05:00
Juan Bustamante 68d1efabdd
fixing a little bug when creating a builder without target flag on darwin
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-21 15:58:49 -05:00
Natalie Arellano 84930f5113 Remove error check
LCOW appears to fallback to the arch it can find

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-21 10:15:25 -04:00
Natalie Arellano da674445a5 Bring back needed skip
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-20 17:22:01 -04:00
Natalie Arellano f8a1033936 Make acceptance test a little more robust
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-20 17:12:51 -04:00
Juan Bustamante 3f3b24d2f9
allowing to create a builder with other architecture available for lifecycle
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 15:51:28 -05:00
Natalie Arellano f2cd826552 Fix tests
- WCOW units by checking for 'windows' in error string
- LCOW acceptance by printing a log line and checking it instead of expecting an error

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-20 16:00:00 -04:00
Natalie Arellano 6f50db6611 Fix acceptance by skipping test if feature not supported
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-20 15:34:36 -04:00
Natalie Arellano d81ec1600c Support `pack build --platform`
Fixes https://github.com/buildpacks/pack/issues/2154

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-20 15:25:38 -04:00
Juan Bustamante 87e4101486
fixing a bug when exporting multi-platform buildpack packages files
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 09:59:35 -05:00
Juan Bustamante 46ec0df1c4
fixing more feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 09:59:35 -05:00
Juan Bustamante 35cf9beabc
fixing some feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 09:59:24 -05:00
Juan Bustamante bad37a994d
Implementation of the multi-platform RFC - 0128
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 09:59:03 -05:00
Juan Bustamante e1d6106d3b
Merge pull request #2161 from buildpacks/fix/buildpack-toml-validation
When validating buildpack.toml, don't warn for keys that are actually defined
2024-05-20 09:57:04 -05:00
Juan Bustamante 47ae7a3271
Merge branch 'main' into fix/buildpack-toml-validation 2024-05-20 09:21:26 -05:00
Juan Bustamante 302963e081
Merge pull request #2155 from jjbustamante/bugfix/jjbustamante/issue-1922
Warn misconfiguration keys in project.toml only for tables we own
2024-05-20 09:20:44 -05:00
Juan Bustamante b8827af57a
Merge branch 'main' into bugfix/jjbustamante/issue-1922 2024-05-20 08:56:06 -05:00
Juan Bustamante c1676bb5fe
Merge pull request #2127 from buildpacks/fix/run-image-pull
Pull run image using digest reference in analyzed.toml (not image name from extensions)
2024-05-20 08:53:57 -05:00
Juan Bustamante 6405ff486b
Merge branch 'main' into fix/run-image-pull 2024-05-20 08:31:23 -05:00
Juan Bustamante e76cf933de
fixing some feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-20 08:17:36 -05:00
Natalie Arellano 348791a980 When validating buildpack.toml don't warn for keys that are actually defined
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-17 16:43:58 -04:00
Natalie Arellano 3350bc96a8 Fix acceptance
The fixture changed, so the SHA changed

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-17 13:28:09 -04:00
Juan Bustamante f733a3a8bb
changing the logic to print the warning message, only will be printed for tables in the project.toml we own
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-17 06:18:42 -05:00
Juan Bustamante 884dd18373
Merge pull request #2157 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_19_6
Updating default lifecycle version 0.19.6
2024-05-16 11:28:12 -05:00
Juan Bustamante bb5db76f96
Updating default lifecycle version 0.19.6
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-16 11:00:13 -05:00
Juan Bustamante 1cc921d5c5
Merge pull request #2151 from sap-contributions/blob-downloader-client
Do not initialize `http.Client` during each request to a remote location
2024-05-16 10:54:44 -05:00
Natalie Arellano 75b16b6c4a Pull the new run image by name before restore, and by identifier after restore
When building to a daemon we need to pull the run image before restore in order to get target data

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-14 17:06:37 -04:00
Pavel Busko cfcd3f931e Do not initialize http.Client during each request to a remote location
Signed-off-by: Pavel Busko <pavel.busko@sap.com>
2024-05-10 15:25:58 +02:00
Juan Bustamante 0a39de09a0
Merge pull request #2150 from buildpacks/dependabot/go_modules/go-dependencies-74daed8b8f
build(deps): bump the go-dependencies group across 1 directory with 6 updates
2024-05-08 16:17:54 -05:00
dependabot[bot] b8dca70180
build(deps): bump the go-dependencies group across 1 directory with 6 updates
Bumps the go-dependencies group with 4 updates in the / directory: [github.com/docker/cli](https://github.com/docker/cli), [github.com/onsi/gomega](https://github.com/onsi/gomega), [golang.org/x/crypto](https://github.com/golang/crypto) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/docker/cli` from 26.0.1+incompatible to 26.1.1+incompatible
- [Commits](https://github.com/docker/cli/compare/v26.0.1...v26.1.1)

Updates `github.com/onsi/gomega` from 1.33.0 to 1.33.1
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.33.0...v1.33.1)

Updates `golang.org/x/crypto` from 0.22.0 to 0.23.0
- [Commits](https://github.com/golang/crypto/compare/v0.22.0...v0.23.0)

Updates `golang.org/x/oauth2` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/oauth2/compare/v0.19.0...v0.20.0)

Updates `golang.org/x/term` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/term/compare/v0.19.0...v0.20.0)

Updates `golang.org/x/text` from 0.14.0 to 0.15.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-08 17:58:15 +00:00
Husni Faiz 67feb16025
Add a new `manifest` command to support multi-architecture builds (#1705)
Implement Pack Manifest commands in support of https://github.com/buildpacks/rfcs/blob/main/text/0124-pack-manifest-list-commands.md

Signed-off-by: Husni Faiz <ahamedhusni73@gmail.com>
Signed-off-by: WYGIN <wygininc@gmail.com>
Signed-off-by: sai kiran <wyginc1@gmail.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
Signed-off-by: Sai Kiran Maggidi <107541780+WYGIN@users.noreply.github.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>

Co-authored-by: Juan Bustamante <jbustamante@vmware.com>
Co-authored-by: WYGIN <wygininc@gmail.com>
Co-authored-by: sai kiran <wyginc1@gmail.com>
Co-authored-by: Juan Bustamante <juan.bustamante@broadcom.com>
Co-authored-by: Sai Kiran Maggidi <107541780+WYGIN@users.noreply.github.com>
Co-authored-by: Juan Bustamante <bustamantejj@gmail.com>
2024-05-08 12:56:14 -05:00
Juan Bustamante d3904d63b3
Merge pull request #2136 from buildpacks/deps/jjbustamante/update-to-docker-26
Updating to Docker 26.x & lifecycle 0.19.4
2024-05-08 12:23:06 -05:00
Natalie Arellano 7cd4e0bd72 Bump lifecycle to 0.19.4
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-08 12:30:19 -04:00
Juan Bustamante fb50e283a4
Merge branch 'main' into deps/jjbustamante/update-to-docker-26 2024-05-06 08:49:56 -05:00
Juan Bustamante 32d8db5ef6
Merge pull request #2125 from buildpacks/enhancement/jjbustamante/issue-2066-part-1
Removing experimental configuration for extensions starting with API 0.13
2024-05-03 15:10:54 -05:00
Juan Bustamante 2293719d76
Merge branch 'main' into deps/jjbustamante/update-to-docker-26 2024-05-03 14:34:00 -05:00
Juan Bustamante c53fbf5cdb
Merge branch 'main' into enhancement/jjbustamante/issue-2066-part-1 2024-05-03 14:21:02 -05:00
Juan Bustamante 57282c728f
Merge pull request #2145 from buildpacks/extensions-context
Platform 0.13: look for build Dockerfiles in <layers>/generated/<buildpack-id>/Dockerfile.build
2024-05-03 14:19:35 -05:00
Juan Bustamante 635f6c0f89
Merge branch 'main' into extensions-context 2024-05-03 13:54:28 -05:00
Natalie Arellano c1ad91c934 Fix acceptance
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-03 14:14:09 -04:00
Juan Bustamante 2b23d38d1f
Fixing latest code from main to be compatible with docker 26
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-05-02 14:28:35 -05:00
Natalie Arellano 1e7aad8d05 Skip WCOW failing test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-02 15:24:59 -04:00
Juan Bustamante 391d79f335
Merge branch 'main' into deps/jjbustamante/update-to-docker-26
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
2024-05-02 13:51:38 -05:00
Juan Bustamante 000b471560
Merge branch 'main' into enhancement/jjbustamante/issue-2066-part-1 2024-05-02 13:49:47 -05:00
Natalie Arellano b24c122640 Also consider buildpacks that are added from project descriptor (but exclude inline buildpacks)
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-02 13:45:04 -04:00
Juan Bustamante dc5946137b
Merge pull request #2129 from BarDweller/mountpoints
Add ephemeral lifecycle image, enabling podman support
2024-05-02 10:53:10 -05:00
Natalie Arellano 0d0a4958ff Warn if NOT --pull-policy=always in container
Fixes https://github.com/buildpacks/pack-private/issues/20

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-02 11:03:45 -04:00
Ozzy Osborne e90aa83041 Merge upstream/main to branch
Signed-off-by: Ozzy Osborne <bardweller@gmail.com>
2024-05-02 10:47:01 -04:00
Natalie Arellano 1ab72dd552 Use the untrusted flow when buildpacks are added to a trusted builder
Fixes https://github.com/buildpacks/pack-private/issues/21

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-02 10:29:29 -04:00
Juan Bustamante eb1c1261ba
Merge branch 'main' into enhancement/jjbustamante/issue-2066-part-1 2024-05-01 18:32:25 -05:00
Natalie Arellano 5f24b01e13 Run build containers with userns=host
Fixes https://github.com/buildpacks/pack-private/issues/26

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-05-01 15:50:35 -04:00
Natalie Arellano b30f3e5ddf Fallback to run image name if we fail to pull run image by reference
(as run image reference may be a daemon image id)

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-29 14:52:32 -04:00
Natalie Arellano 328fce6071 Use the run image name to determine if the run image changed,
use the run image identifier to pull.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-29 12:39:12 -04:00
Natalie Arellano 869bc63d62 Platform 0.13: look for build Dockerfiles in <layers>/generated/<buildpack-id>/Dockerfile.build
Newer platforms don't copy the Dockerfile from where extensions output them

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-29 11:25:02 -04:00
Juan Bustamante 32563a6547
Merge pull request #2139 from buildpacks/dependabot/go_modules/go-dependencies-42388c4fc2
build(deps): bump the go-dependencies group across 1 directory with 9 updates
2024-04-29 10:04:32 -05:00
Juan Bustamante 29192dd490 Updating default lifecycle version to 0.19.3
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
Signed-off-by: Ozzy Osborne <bardweller@gmail.com>
2024-04-29 10:04:50 -04:00
Ozzy Osborne 579608074d Updates from Review comments
Signed-off-by: Ozzy Osborne <bardweller@gmail.com>
2024-04-29 10:04:50 -04:00
Juan Bustamante c3be6a9a9a Updating go version to 1.22.x
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
Signed-off-by: Ozzy Osborne <bardweller@gmail.com>
2024-04-29 10:04:50 -04:00
dependabot[bot] 8760202076
build(deps): bump the go-dependencies group across 1 directory with 9 updates
Bumps the go-dependencies group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) | `0.6.1` | `0.6.2` |
| [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) | `5.11.0` | `5.12.0` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.32.0` | `1.33.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.21.0` | `0.22.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.16.0` | `0.17.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.18.0` | `0.19.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.6.0` | `0.7.0` |



Updates `github.com/Microsoft/go-winio` from 0.6.1 to 0.6.2
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.6.1...v0.6.2)

Updates `github.com/go-git/go-git/v5` from 5.11.0 to 5.12.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.11.0...v5.12.0)

Updates `github.com/onsi/gomega` from 1.32.0 to 1.33.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.32.0...v1.33.0)

Updates `golang.org/x/crypto` from 0.21.0 to 0.22.0
- [Commits](https://github.com/golang/crypto/compare/v0.21.0...v0.22.0)

Updates `golang.org/x/mod` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/mod/compare/v0.16.0...v0.17.0)

Updates `golang.org/x/oauth2` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/oauth2/compare/v0.18.0...v0.19.0)

Updates `golang.org/x/sync` from 0.6.0 to 0.7.0
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

Updates `golang.org/x/sys` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/sys/compare/v0.18.0...v0.19.0)

Updates `golang.org/x/term` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/go-winio
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 13:59:14 +00:00
Natalie Arellano 2c98edd3fa Fix unit
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-29 09:53:27 -04:00
Juan Bustamante d7c6f0e73e
Merge pull request #2092 from buildpacks/bugfix/jjbustamante/issue-2078
Adding a nop-op when trying to check access for run-image against the daemon
2024-04-26 18:24:43 -05:00
Juan Bustamante e85ddee1f5
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@googlemail.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:45 -05:00
Juan Bustamante a9bb1ca905
renaming method interface to CheckReadAccess and adding some tests cases
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:45 -05:00
Juan Bustamante bcc4a5fc2a
Removing unused method
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:44 -05:00
Juan Bustamante 56bcbce94c
Adding Pull Policy into the logic to detect read access
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:44 -05:00
Juan Bustamante b53508619b
refactoring the logic, I moved the check read access to a method in the fetcher
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:44 -05:00
Juan Bustamante 81d9698496
Adding a nop-op when trying to check access for run-image against the daemon
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-26 17:15:44 -05:00
Juan Bustamante 3c6dc12eb8
Adding new implementation for parsing volumen input when running on
darwin. This is important because docker 26 did a refactoring and
safepath.Join is not available for darwin. This is a workaround for now

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-24 12:06:18 -05:00
Juan Bustamante 4163bbf17f
reimplementing the logic to parse volumens, with docker 26 compilation was broken in darwin. Thanks Matej
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-24 08:41:07 -05:00
Juan Bustamante 0daa11f606
migrating to docker 26.0
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-22 13:55:19 -05:00
Juan Bustamante 72414e5952
Updating to Docker 26.x, We need to use a development lifecycle version
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-04-22 11:43:35 -05:00
Juan Bustamante 12b7d24b06
Merge pull request #2123 from buildpacks/fix/bp-new
Fix pack buildpack new --targets
2024-04-19 16:50:52 -05:00
Juan Bustamante e3977732dd
Merge branch 'main' into fix/bp-new 2024-04-19 16:29:04 -05:00
Natalie Arellano 7949931b04 Add distro test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-19 15:22:10 -04:00
Natalie Arellano 39fecde576 Add test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-19 15:17:57 -04:00
Natalie Arellano b9cccb713e Add warning when we detect wrong things in buildpack.toml or extension.toml
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-19 15:04:33 -04:00
Ozzy Osborne 52adfe6eb9 add ephemeral lifecycle image
Signed-off-by: Ozzy Osborne <bardweller@gmail.com>
2024-04-19 13:01:08 -04:00
Juan Bustamante fd32fee04e
Merge branch 'main' into enhancement/jjbustamante/issue-2066-part-1 2024-04-19 08:49:19 -05:00
Juan Bustamante aef63b58b8
Merge pull request #2134 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_19_3
Updating default lifecycle version to 0.19.3
2024-04-18 15:03:47 -05:00
Juan Bustamante 290df91af4
Updating default lifecycle version to 0.19.3
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-18 10:15:47 -05:00
Juan Bustamante 0533daf8e9
Merge pull request #2133 from buildpacks/deps/jjbustamante/update-to-go-1-22
Updating to go 1.22
2024-04-18 09:39:42 -05:00
Juan Bustamante 5e6db32f1f
Updating go version to 1.22.x
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-18 09:15:43 -05:00
Natalie Arellano 3343b9b0ac Pull run image using digest reference in analyzed.toml (not image name from extensions)
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-16 16:35:53 -04:00
Juan Bustamante 557527dec5
Removing experimental configuration for extensions starting with API version 0.13
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-15 17:42:07 -05:00
Natalie Arellano 5aa2092365
Merge branch 'main' into fix/bp-new 2024-04-09 13:11:57 -04:00
Natalie Arellano 0bba81c160 Fix https://github.com/buildpacks/pack/issues/2120
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-04-09 13:03:45 -04:00
Juan Bustamante 5b8da44591
Merge pull request #2117 from buildpacks/enhancement/jjbustamante/issue-2113
Exposing the logic for processing the Docker Context to be public
2024-04-09 09:53:03 -05:00
Juan Bustamante 70d3f4df6b
Merge branch 'main' into enhancement/jjbustamante/issue-2113 2024-04-09 09:33:30 -05:00
Juan Bustamante 969ff6c0cb
Merge pull request #2022 from Pratham1812/alpha/patch
Update run image metadata when --run-image is provided
2024-04-09 09:31:58 -05:00
Juan Bustamante dfe0e73d73
renaming acceptance test helper method for consistency, adding feedback from Natalie
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-05 16:08:15 -05:00
Juan Bustamante 1122cab269
- Fixing formatting issues
- Adding acceptance tests

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-05 12:57:12 -05:00
Pratham Agarwal 81e50d5600
fix:made changes as per comments
Signed-off-by: Pratham Agarwal <agarwalpratham1812@gmail.com>
2024-04-05 12:35:46 -05:00
Pratham Agarwal fdbbe2b209
fix:minor changes
Signed-off-by: Pratham Agarwal <agarwalpratham1812@gmail.com>
2024-04-05 12:31:38 -05:00
Pratham Agarwal e778646e64
fix:fixed tests
Signed-off-by: Pratham Agarwal <agarwalpratham1812@gmail.com>
2024-04-05 12:24:17 -05:00
Pratham Agarwal d8ea58810b
resolve issue #1964
Signed-off-by: Pratham Agarwal <agarwalpratham1812@gmail.com>
2024-04-05 12:18:41 -05:00
Juan Bustamante 434df0ea71
Merge branch 'main' into enhancement/jjbustamante/issue-2113 2024-04-04 18:32:03 -05:00
Juan Bustamante 6a9e3d193a
Merge pull request #2118 from buildpacks/revert/jjbustamante/issue-1779
Reverting the MAC - Address flag code (for now)
2024-04-04 18:30:06 -05:00
Juan Bustamante 3d9fa30472
Reverting the code because we can't update the docker version to 25.0 in the ci
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-04 18:01:13 -05:00
Juan Bustamante cafced7884
Exposing the logic for processing the Docker Context to be public
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-04-04 09:06:09 -05:00
Juan Bustamante 6fc092be64
Merge pull request #2096 from buildpacks/dependabot/go_modules/tools/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.28.0 to 1.33.0 in /tools
2024-03-27 21:22:56 +01:00
dependabot[bot] 2e41d82f14
build(deps): bump google.golang.org/protobuf in /tools
Bumps google.golang.org/protobuf from 1.28.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 15:53:42 +00:00
Juan Bustamante 9dafd73017
Merge pull request #2107 from a1flecke/add-noble-ppa
Release Noble Numbat
2024-03-27 16:25:04 +01:00
Juan Bustamante c2fcc53d96
Merge branch 'main' into add-noble-ppa 2024-03-27 16:04:27 +01:00
Juan Bustamante ad6673da4d
Merge pull request #2108 from buildpacks/dependabot/go_modules/go-dependencies-527e73e42b
build(deps): bump the go-dependencies group with 3 updates
2024-03-27 15:35:12 +01:00
Aaron Fleckenstein f3f4fcb5da Release Noble Numbat
- Update Github workflows to release a package for Ubuntu 22.04 (Noble Numbat)

Signed-off-by: Aaron Fleckenstein <aaron.fleckenstein@daveramsey.com>
2024-03-27 06:31:45 -05:00
dependabot[bot] 29e248d000
build(deps): bump the go-dependencies group with 3 updates
Bumps the go-dependencies group with 3 updates: [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry), [github.com/onsi/gomega](https://github.com/onsi/gomega) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/google/go-containerregistry` from 0.19.0 to 0.19.1
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.19.0...v0.19.1)

Updates `github.com/onsi/gomega` from 1.31.1 to 1.32.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.31.1...v1.32.0)

Updates `golang.org/x/oauth2` from 0.17.0 to 0.18.0
- [Commits](https://github.com/golang/oauth2/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 00:21:26 +00:00
Juan Bustamante 328b879af1
Merge pull request #2105 from buildpacks/dependabot/go_modules/github.com/docker/docker-25.0.5incompatible
build(deps): bump github.com/docker/docker from 25.0.3+incompatible to 25.0.5+incompatible
2024-03-27 01:19:55 +01:00
dependabot[bot] c1e29ba213
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.3+incompatible to 25.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v25.0.3...v25.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 22:28:42 +00:00
Juan Bustamante 52145f4c45
Merge pull request #2097 from buildpacks/dependabot/go_modules/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0
2024-03-26 23:27:39 +01:00
dependabot[bot] 71c2b265b8
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 22:05:26 +00:00
Juan Bustamante 55086ca041
Merge pull request #2100 from mstergianis/fix-extldflags-quoting
Quotes extldflags in the Makefile
2024-03-26 22:50:21 +01:00
Juan Bustamante b64adbd645
Merge pull request #2106 from dgannon991/contribfest/fix-readme-links
Fixed broken links within the readme
2024-03-26 22:43:15 +01:00
David ace7b0f6db
Fix broken links within readme
Signed-off-by: David <19214156+dgannon991@users.noreply.github.com>
2024-03-26 20:34:38 +00:00
Michael Stergianis c7587738e1
Quotes extldflags in the Makefile
I was using multiple space separated LDFLAGS when building, for example
LDFLAGS="-Wl,-O1 -Wl,--sort-common" make build
which appears to correspond with recommendations from the go project
- in the [golang link docs](https://pkg.go.dev/cmd/link)
- and [this issue](https://github.com/golang/go/issues/6234)

Signed-off-by: Michael Stergianis <mstergianis@vmware.com>
2024-03-16 18:09:02 -04:00
Juan Bustamante 95b5aef857
Merge pull request #2093 from tgolang/main
chore: fix comment
2024-03-12 07:32:52 -05:00
tgolang 647f447b96 chore: fix comment
Signed-off-by: tgolang <seekseat@aliyun.com>
2024-03-12 16:01:21 +08:00
Juan Bustamante ff3ad2b7d3
Merge pull request #2090 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.5.4
build(deps): bump buildpacks/github-actions from 5.5.2 to 5.5.4
2024-03-08 11:06:28 -05:00
dependabot[bot] 629f64cb4f
build(deps): bump buildpacks/github-actions from 5.5.2 to 5.5.4
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.5.2 to 5.5.4.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.5.2...v5.5.4)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 15:49:15 +00:00
Juan Bustamante 2a15554749
Merge pull request #2023 from Parthiba-Hazra/retag
Add an option to retag rather than replacing the target image while rebasing
2024-03-08 10:45:24 -05:00
Juan Bustamante ced704fa85
Merge branch 'main' into retag 2024-03-08 09:49:46 -05:00
Juan Bustamante 667bf4f625
Merge pull request #2089 from buildpacks/dependabot/go_modules/go-dependencies-8d9ff2ce2a
build(deps): bump the go-dependencies group with 5 updates
2024-03-08 09:45:36 -05:00
Juan Bustamante a584b7d9b9
Merge branch 'main' into retag 2024-03-06 08:10:08 -05:00
dependabot[bot] 31b0ec3f42
build(deps): bump the go-dependencies group with 5 updates
Bumps the go-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) | `2.7.1` | `2.7.4` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.20.0` | `0.21.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.15.0` | `0.16.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.17.0` | `0.18.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.17.0` | `0.18.0` |


Updates `github.com/gdamore/tcell/v2` from 2.7.1 to 2.7.4
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.7.1...v2.7.4)

Updates `golang.org/x/crypto` from 0.20.0 to 0.21.0
- [Commits](https://github.com/golang/crypto/compare/v0.20.0...v0.21.0)

Updates `golang.org/x/mod` from 0.15.0 to 0.16.0
- [Commits](https://github.com/golang/mod/compare/v0.15.0...v0.16.0)

Updates `golang.org/x/sys` from 0.17.0 to 0.18.0
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.0)

Updates `golang.org/x/term` from 0.17.0 to 0.18.0
- [Commits](https://github.com/golang/term/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 22:38:22 +00:00
Juan Bustamante c36dcf8b66
Merge pull request #2088 from AidanDelaney/fix/2087-getBestRunMirror
Return an image even if inaccessible
2024-03-04 11:09:01 -05:00
Aidan Delaney 0fdda16749 Return an image even if inaccessible
When all run images are inaccessible, still return a run image.  Pack
will then provide a better error message to the end-user.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2024-03-04 07:21:06 +00:00
Juan Bustamante 1e41857483
Merge pull request #2085 from valen-mascarenhas14/v-dev
Add pack cli support for IBM ppc64le
2024-03-01 11:58:54 -05:00
valen-mascarenhas14 d579a39358 Add pack cli support for IBM ppc64le
Signed-off-by: valen-mascarenhas14 <valen.mascarenhas@ibm.com>
2024-03-01 21:17:07 +05:30
Juan Bustamante ea5a48ac72
Merge pull request #2081 from joshwlewis/support-empty-stacks
Add validation support for empty/nil `[[stacks]]`
2024-02-28 17:13:31 -05:00
Juan Bustamante a0bb25ea5b
Merge branch 'main' into support-empty-stacks 2024-02-28 16:45:54 -05:00
Juan Bustamante 3356686e25
Merge pull request #2082 from buildpacks/dependabot/go_modules/go-dependencies-0ae3d4a4b9
build(deps): bump the go-dependencies group with 2 updates
2024-02-28 15:22:37 -05:00
dependabot[bot] 35fd5f5e2d
build(deps): bump the go-dependencies group with 2 updates
Bumps the go-dependencies group with 2 updates: [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) and [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `github.com/gdamore/tcell/v2` from 2.7.0 to 2.7.1
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.7.0...v2.7.1)

Updates `golang.org/x/crypto` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/crypto/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 22:18:04 +00:00
Josh W Lewis 7a5d93b2c7
Fix incorrect append argument
Signed-off-by: Josh W Lewis <josh.lewis@salesforce.com>
2024-02-26 14:18:34 -06:00
Josh W Lewis 03cfdef3d0
Assume non-meta buildpacks without stacks use any stack
Signed-off-by: Josh W Lewis <josh.lewis@salesforce.com>
2024-02-26 13:45:01 -06:00
Josh W Lewis 85e9682091
Add a test for non-meta buildpack with empty stacks
Signed-off-by: Josh W Lewis <josh.lewis@salesforce.com>
2024-02-26 13:42:11 -06:00
Juan Bustamante 2df4445a47
Merge pull request #2074 from buildpacks/dependabot/go_modules/github.com/opencontainers/image-spec-1.1.0
build(deps): bump github.com/opencontainers/image-spec from 1.1.0-rc5 to 1.1.0
2024-02-21 07:46:44 -05:00
dependabot[bot] b6d622e5aa
build(deps): bump github.com/opencontainers/image-spec
Bumps [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec) from 1.1.0-rc5 to 1.1.0.
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.1.0-rc5...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-19 22:49:52 +00:00
github-bot 06e3112b10 Merge remote-tracking branch 'origin/release/0.33.2' 2024-02-14 23:10:08 +00:00
Juan Bustamante f2cffc4ab6
Merge pull request #2069 from buildpacks/deps/jjbustamante/deps-0.33.2
Bump docker/docker v25 and lifecycle 0.18.5
2024-02-14 18:09:52 -05:00
Juan Bustamante ffd707e3d4
bumping docker/cli to v25
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-14 17:45:43 -05:00
Juan Bustamante 84564e8e08
Merge pull request #2058 from buildpacks/dependabot/go_modules/github.com/docker/cli-25.0.3incompatible
build(deps): bump github.com/docker/cli from 24.0.7+incompatible to 25.0.3+incompatible
2024-02-14 17:40:19 -05:00
Juan Bustamante e2ce0ad322
bump docker/docker v25, lifecycle 0.18.5 and removing buildkit pin
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-14 17:10:22 -05:00
dependabot[bot] 8c63233347
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 24.0.7+incompatible to 25.0.3+incompatible.
- [Commits](https://github.com/docker/cli/compare/v24.0.7...v25.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-14 21:44:52 +00:00
Juan Bustamante 1ede7ea0c2
Merge pull request #2067 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_18_5
Bump default lifecycle version & lifecycle library version 0.18.5
2024-02-14 16:41:21 -05:00
Juan Bustamante 5805e69f2d
Update to version 0.18.5
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-14 16:11:25 -05:00
Juan Bustamante f3b49cb5b3
Merge pull request #2062 from matejvasek/update-docker-v25
Update docker to v25
2024-02-14 16:03:58 -05:00
Matej Vašek b38a8d9f1a
chore: update docker to v25
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-02-14 03:23:09 +01:00
Juan Bustamante ded78f30bd
Merge pull request #2042 from colincasey/fix_1922_silently_ignoring_keys_in_project_toml
Warn if project.toml contains keys not supported by schema
2024-02-12 09:45:37 -05:00
Colin Casey bfaafe9aaf
Merge branch 'main' into fix_1922_silently_ignoring_keys_in_project_toml 2024-02-10 11:01:25 -04:00
Colin Casey da37994a41 Use logger with ReadProjectDescriptor
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-02-09 23:07:13 -04:00
Juan Bustamante 5cbc93efc4
Merge pull request #2056 from buildpacks/dependabot/go_modules/go-dependencies-c1d307fc42
build(deps): bump the go-dependencies group with 6 updates
2024-02-08 17:02:43 -05:00
dependabot[bot] 42bc57d0f5
build(deps): bump the go-dependencies group with 6 updates
Bumps the go-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) | `0.18.0` | `0.19.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.18.0` | `0.19.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.14.0` | `0.15.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.16.0` | `0.17.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.16.0` | `0.17.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.16.0` | `0.17.0` |


Updates `github.com/google/go-containerregistry` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.18.0...v0.19.0)

Updates `golang.org/x/crypto` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/crypto/compare/v0.18.0...v0.19.0)

Updates `golang.org/x/mod` from 0.14.0 to 0.15.0
- [Commits](https://github.com/golang/mod/compare/v0.14.0...v0.15.0)

Updates `golang.org/x/oauth2` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/oauth2/compare/v0.16.0...v0.17.0)

Updates `golang.org/x/sys` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.0)

Updates `golang.org/x/term` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/term/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 21:41:31 +00:00
Juan Bustamante f983ad826e
Merge pull request #2028 from Parthiba-Hazra/MAC-address
feat: added a mac-address flag to build option, so that user can manually set the MAC-address.
2024-02-08 16:06:20 -05:00
Juan Bustamante a2573b01e5
Merge branch 'main' into MAC-address 2024-02-08 15:45:16 -05:00
Juan Bustamante 8ed450d44d
Merge pull request #2049 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.5.2
build(deps): bump buildpacks/github-actions from 5.5.1 to 5.5.2
2024-02-07 18:31:10 -05:00
dependabot[bot] 6a83c5c83e
build(deps): bump buildpacks/github-actions from 5.5.1 to 5.5.2
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.5.1...v5.5.2)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-07 22:18:49 +00:00
Juan Bustamante d15c3e93fb
Updating pack version for acceptance tests, it was moved to 0.34.0
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-02-07 16:40:24 -05:00
Juan Bustamante 18b172fb74
running make format
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-02-07 16:31:45 -05:00
Juan Bustamante cc4647d49c
Merge pull request #2043 from colincasey/1500_separate_suggested_and_trusted_builders
Separate suggested builders from default trusted builders
2024-02-07 16:22:58 -05:00
Juan Bustamante 214a376920
Update pack.go
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2024-02-07 16:07:01 -05:00
Juan Bustamante ec71d3c090
Merge branch 'main' into fix_1922_silently_ignoring_keys_in_project_toml
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
2024-02-07 16:03:43 -05:00
Juan Bustamante bdaaead7ba
Merge branch 'main' into 1500_separate_suggested_and_trusted_builders 2024-02-07 16:02:07 -05:00
Juan Bustamante c45c3cf74a
Merge pull request #2053 from buildpacks/bugfix/jjbustamante/issue-2050
Fixing an parsing error with the buildpacks to be flattened
2024-02-07 10:09:22 -05:00
Juan Bustamante 572f8696f3
renaming the methods
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-06 19:05:53 -05:00
Juan Bustamante f24d3bc1ae
Fixing an parsing error with the buildpacks to be flattened
Using StringArrayVar

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-06 18:21:07 -05:00
Colin Casey 7f2d731393
Merge branch 'main' into 1500_separate_suggested_and_trusted_builders 2024-02-06 12:33:05 -04:00
Juan Bustamante 30dcc1520c
Merge pull request #2002 from buildpacks/dependabot/github_actions/actions/setup-go-5
build(deps): bump actions/setup-go from 4 to 5
2024-02-05 10:08:53 -05:00
dependabot[bot] 6215fdf1f0
build(deps): bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-05 14:38:45 +00:00
Colin Casey 96ab9c9886
Merge branch 'main' into fix_1922_silently_ignoring_keys_in_project_toml 2024-02-05 09:33:02 -04:00
Juan Bustamante c4164104bc
Merge pull request #2036 from buildpacks/dependabot/github_actions/peter-evans/repository-dispatch-3
build(deps): bump peter-evans/repository-dispatch from 2 to 3
2024-02-02 16:09:22 -05:00
dependabot[bot] d4e6e3a0ea
build(deps): bump peter-evans/repository-dispatch from 2 to 3
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 2 to 3.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v2...v3)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 20:53:13 +00:00
Juan Bustamante 9c2bfcbee7
Merge pull request #2011 from buildpacks/dependabot/github_actions/actions/download-artifact-4
build(deps): bump actions/download-artifact from 3 to 4
2024-02-02 15:52:21 -05:00
Juan Bustamante 116aeb7e27
Merge pull request #2013 from buildpacks/dependabot/github_actions/actions/upload-artifact-4
build(deps): bump actions/upload-artifact from 3 to 4
2024-02-02 15:52:10 -05:00
Juan Bustamante 4e7a381384
Merge pull request #2012 from buildpacks/dependabot/github_actions/github/codeql-action-3
build(deps): bump github/codeql-action from 2 to 3
2024-02-02 15:42:20 -05:00
Colin Casey 9841c430f7
Merge branch 'main' into fix_1922_silently_ignoring_keys_in_project_toml 2024-02-02 16:15:37 -04:00
Colin Casey 01cf0d325e
Merge branch 'main' into 1500_separate_suggested_and_trusted_builders 2024-02-02 16:15:17 -04:00
dependabot[bot] bffb108ac9
build(deps): bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 19:36:56 +00:00
dependabot[bot] a15290c8a4
build(deps): bump github/codeql-action from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 19:29:56 +00:00
dependabot[bot] 23f8634b1a
build(deps): bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-02 19:29:41 +00:00
Colin Casey 37de02ab9c Removed `heroku/builder:20` from suggested builders
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-02-02 15:29:41 -04:00
Juan Bustamante 4bce404875
Merge pull request #2045 from buildpacks/chore/issue-2044
Excluding pre-release from `check latest pack release` workflow
2024-02-02 12:41:32 -05:00
Parthiba-Hazra d7559e2440 add test cases for new changes in Rebase function
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-02-02 21:00:32 +05:30
Parthiba-Hazra c6749c7b94 fix merge conflicts
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

update documentation for PreviousImage filed in RebaseOptions

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

update docs

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-02-02 17:55:52 +05:30
Juan Bustamante 8e129ed807
Excluding pre-release from check latest pack release workflow
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-02-01 11:32:41 -05:00
Colin Casey 1b68d1261e Separate suggested builders from default trusted builders
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-01-30 15:12:55 -04:00
Colin Casey 5b1219d6c5 Increase test coverage
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-01-30 12:52:59 -04:00
Colin Casey 77f7915e40 Limit acceptance to current version and up
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-01-30 12:34:47 -04:00
Colin Casey f662318bb6 Warn if project.toml contains keys not supported by schema
- also notifies when the schema version is missing and defaults to `0.1`

Fixes #1922

Signed-off-by: Colin Casey <casey.colin@gmail.com>
2024-01-30 11:42:00 -04:00
Juan Bustamante e3f8bc24f9
Merge pull request #2018 from buildpacks/dependabot/go_modules/github.com/cloudflare/circl-1.3.7
build(deps): bump github.com/cloudflare/circl from 1.3.3 to 1.3.7
2024-01-29 12:36:53 -05:00
dependabot[bot] 5970701ccf
build(deps): bump github.com/cloudflare/circl from 1.3.3 to 1.3.7
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 15:22:54 +00:00
Parthiba-Hazra b7d6bc0cb3 Renaming the `--tag` flag to `--previous-image` to better reflect its purpose.
If previous-image flag set then workingImage will be based off of opts.PreviousImage in the rebaser.Rebase

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

fix merge conflicts

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

resolve merge conflict

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-01-29 20:45:02 +05:30
Juan Bustamante e1a4d0096b Moves lifecycle package to phase
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-29 20:41:00 +05:30
Juan Bustamante ef68692d56 adding feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-29 20:40:07 +05:30
Juan Bustamante c571998ee9 Implementing RFC-0123
During builder creation, end-users can provide the flag `--flatten` with
the buildpacks they want to put in one layer.

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-29 20:39:35 +05:30
Rizul Gupta ad4874858b Update internal/commands/rebase.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-29 20:35:47 +05:30
Rizul Gupta da19388a0b change help text of --publish
Signed-off-by: Rizul Gupta <mail2rizul@gmail.com>
2024-01-29 20:35:46 +05:30
Parthiba-Hazra f46c54147c add an option to retag rather than replacing the target image while rebasing
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

add an option to "retag" rather than replacing the target image while rebasing

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-01-29 20:31:08 +05:30
Juan Bustamante 1d3718be89
Merge pull request #2034 from buildpacks/enhancement/jjbustamante/issue-2033
Adding `--label` flag to `pack builder create` command
2024-01-25 21:00:31 -05:00
Juan Bustamante bdc66d290d
adding --label flag to pack builder create command
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-24 11:34:55 -05:00
Juan Bustamante c6dd3ce765
Merge pull request #2032 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_18_4
Bump default lifecycle version & lifecycle library version 0.18.4
2024-01-24 10:07:56 -05:00
Juan Bustamante 011f6d3927
Fixing some unit tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-23 10:52:41 -05:00
Juan Bustamante 915e020d6c
workarounding issue with buildkit version and kaniko
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-23 10:24:40 -05:00
Juan Bustamante 8b58c6eb9d
Moves lifecycle package to phase
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-23 10:00:02 -05:00
Juan Bustamante f3b59a51f5
Upgrade lifecycle version to 0.18.4
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-23 09:31:35 -05:00
Juan Bustamante 038d3e7781
Merge pull request #2031 from buildpacks/deps/jjbustamante/update-to-go-1-21
Updating to go 1.21
2024-01-23 09:26:13 -05:00
Juan Bustamante 2689221095
Updating to go 1.21
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-23 08:30:39 -05:00
Juan Bustamante 78c5c5b3c1
Merge pull request #2030 from buildpacks/dependabot/go_modules/go-dependencies-b311b53008
build(deps): bump the go-dependencies group with 8 updates
2024-01-23 07:55:26 -05:00
dependabot[bot] ad6c00295c
build(deps): bump the go-dependencies group with 8 updates
Bumps the go-dependencies group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/go-connections](https://github.com/docker/go-connections) | `0.4.0` | `0.5.0` |
| [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) | `2.6.0` | `2.7.0` |
| [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) | `5.10.1` | `5.11.0` |
| [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) | `0.16.1` | `0.18.0` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.30.0` | `1.31.1` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.16.0` | `0.18.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.15.0` | `0.16.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.5.0` | `0.6.0` |


Updates `github.com/docker/go-connections` from 0.4.0 to 0.5.0
- [Commits](https://github.com/docker/go-connections/compare/v0.4.0...v0.5.0)

Updates `github.com/gdamore/tcell/v2` from 2.6.0 to 2.7.0
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.6.0...v2.7.0)

Updates `github.com/go-git/go-git/v5` from 5.10.1 to 5.11.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.10.1...v5.11.0)

Updates `github.com/google/go-containerregistry` from 0.16.1 to 0.18.0
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.16.1...v0.18.0)

Updates `github.com/onsi/gomega` from 1.30.0 to 1.31.1
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.30.0...v1.31.1)

Updates `golang.org/x/crypto` from 0.16.0 to 0.18.0
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.18.0)

Updates `golang.org/x/oauth2` from 0.15.0 to 0.16.0
- [Commits](https://github.com/golang/oauth2/compare/v0.15.0...v0.16.0)

Updates `golang.org/x/sync` from 0.5.0 to 0.6.0
- [Commits](https://github.com/golang/sync/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/docker/go-connections
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 22:10:28 +00:00
Juan Bustamante 11d07a0894
Merge pull request #2027 from buildpacks/bugfix/jjbustamante/issue-2000
Bumping imgutil version
2024-01-22 17:04:49 -05:00
Juan Bustamante 3927106017
Merge branch 'main' into bugfix/jjbustamante/issue-2000 2024-01-22 16:16:24 -05:00
Juan Bustamante 85e3e4811c
Merge pull request #1985 from buildpacks/enhancement/jjbustamante/flatten-1880/part-2
New flatten buildpacks/builder implementation - Part 2 - Implementing RFC-0123
2024-01-22 16:10:23 -05:00
Juan Bustamante c044cb7b40
improving gramar
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-22 14:36:01 -05:00
Parthiba-Hazra 3b1544c028 feat: added a mac-address flag to build option to set the value to the docker config
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>

fix failed workflow

Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-01-20 19:09:32 +05:30
Juan Bustamante 35f88a0a18
removing unnecessary leading newline
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-19 19:14:24 -05:00
Juan Bustamante 4690d2590a
adding more test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-19 19:11:34 -05:00
Juan Bustamante 6009d1df43
adding more test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-19 16:55:51 -05:00
Juan Bustamante 402743ba5b
fixing issues after Natalie's review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-19 15:59:50 -05:00
Juan Bustamante e9f89e326e
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-2 2024-01-19 15:02:31 -05:00
Juan Bustamante bae7421385
Merge branch 'main' into bugfix/jjbustamante/issue-2000 2024-01-19 15:01:36 -05:00
Juan Bustamante a51140efc8
Merge pull request #2017 from Parthiba-Hazra/override
add support to override UID for container
2024-01-19 14:58:40 -05:00
Natalie Arellano a230a9a2c2
Merge branch 'main' into override 2024-01-19 14:20:01 -05:00
Juan Bustamante 60922df93b
Merge pull request #2024 from rizul2108/improve-doc-publish
docs: Improve documentation for --publish flag
2024-01-18 16:17:34 -05:00
Juan Bustamante 9d6e42cfa2
Bumping the latest version of imgutil, this version fixes the problem with pack 0.32 and podman
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-18 15:51:30 -05:00
Juan Bustamante d27f8d87ac
Merge branch 'main' into improve-doc-publish 2024-01-18 15:41:05 -05:00
Juan Bustamante 5dffab69ab
Merge pull request #1977 from kotapeter/fix-args-display-inspect
fix: display `Command` remaining parts if `Args` is `nil`
2024-01-18 15:37:00 -05:00
Natalie Arellano 55dec06f44
Merge branch 'main' into improve-doc-publish 2024-01-18 10:13:08 -05:00
Natalie Arellano 249038f9e4
Merge branch 'main' into fix-args-display-inspect 2024-01-17 15:36:27 -05:00
Natalie Arellano 22ab42b2a7
Update internal/inspectimage/info_display.go
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2024-01-17 15:28:12 -05:00
Rizul Gupta 615604e89e
Update internal/commands/buildpack_package.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:06:38 +05:30
Rizul Gupta c8175e2bba
Update internal/commands/extension_package.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:06:27 +05:30
Rizul Gupta 92ae73704b
Update internal/commands/builder_create.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:06:14 +05:30
Rizul Gupta bf225a5769
Update internal/commands/rebase.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:01:42 +05:30
Rizul Gupta fd1154d8b5
Update internal/commands/create_builder.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:01:20 +05:30
Rizul Gupta ab804f5202
Update internal/commands/build.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:01:05 +05:30
Rizul Gupta e4d802fd06
Update internal/commands/package_buildpack.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Rizul Gupta <112455393+rizul2108@users.noreply.github.com>
2024-01-17 23:00:55 +05:30
Juan Bustamante 4e07aa852e
Fixing lint error after resolving merge against latest main branch
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-17 12:00:06 -05:00
Juan Bustamante 420aa0bdd5
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-2
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
2024-01-17 11:47:11 -05:00
Juan Bustamante 3088664f91
updating the builder create option name for flatten to be more readable
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2024-01-17 11:37:16 -05:00
Juan Bustamante 3f1ecb280f
Merge pull request #2010 from sap-contributions/ensure-read-access-run-img
Ensure read access when resolving run image location
2024-01-16 16:33:51 -05:00
Juan Bustamante 50bb26d0df
Merge pull request #2020 from sarthaksarthak9/sbom
Feature: Retrieve SBoM from Registry for Remote Images
2024-01-16 16:25:49 -05:00
Rizul Gupta 577880f019
change help text of --publish
Signed-off-by: Rizul Gupta <mail2rizul@gmail.com>
2024-01-13 23:45:49 +05:30
sarthak d2c5a55373 go mod
Signed-off-by: sarthak <sarthaknegi908@gmail.com>
2024-01-13 09:41:09 +05:30
sarthak d21bd72431 this is a duplicate pr (1648)
Signed-off-by: sarthak <sarthaknegi908@gmail.com>
2024-01-13 09:41:09 +05:30
Parthiba-Hazra 23fb181a1f added test for override UID
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2024-01-09 18:52:06 +05:30
Pavel Busko 4566bb54ca Ensure read access when resolving run image location
Signed-off-by: Pavel Busko <pavel.busko@sap.com>
2024-01-03 13:21:41 +01:00
Parthiba-Hazra 03e4bc7088 add support to override UID for container
Signed-off-by: Parthiba-Hazra <parthibahazra@gmail.com>
2023-12-27 20:36:44 +05:30
Juan Bustamante aabf532b2c
adding feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-20 17:41:20 -04:00
Juan Bustamante c08b2891a2
Merge pull request #1983 from buildpacks/fix/builder-with-extensions-fails-creator
Allow the build to proceed with /cnb/lifecycle/creator when the order contains extensions
2023-12-20 17:25:10 -04:00
Juan Bustamante 8fb9749a02
running make format
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-20 16:29:22 -04:00
Juan Bustamante 36667d5fe4
Merge branch 'main' into fix/builder-with-extensions-fails-creator
Signed-off-by: Juan Bustamante <juan.bustamante@broadcom.com>
2023-12-20 16:27:28 -04:00
Juan Bustamante 18cdd3d9a8
Merge pull request #1925 from buildpacks/enhancement/jjbustamante/flatten-1880/part-1
New flatten buildpacks/builder implementation - Part 1 - removing depth
2023-12-20 16:17:21 -04:00
Juan Bustamante 14684c7535
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-20 14:42:22 -04:00
Juan Bustamante 7b5164c29a
Merge pull request #1896 from buildpacks/bugfix/jjbustamante/issue-1286
Hardlinks are dereferenced in generated archives
2023-12-20 14:41:54 -04:00
Juan Bustamante 4738eb2edc
Merge branch 'main' into bugfix/jjbustamante/issue-1286 2023-12-20 11:10:02 -04:00
Juan Bustamante 3c598f40be
fixing some feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-20 10:35:31 -04:00
Juan Bustamante 91d2ce290d
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-20 10:15:24 -04:00
Juan Bustamante d9fddda305
Merge pull request #2007 from buildpacks/fix/extender-no-such-file
Fetch lifecycle binaries from lifecycle image
2023-12-20 10:13:30 -04:00
Juan Bustamante dadfa3e8fb
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-19 18:09:11 -04:00
Juan Bustamante 5f6aae6f1c
Merge branch 'main' into fix/extender-no-such-file 2023-12-19 18:08:12 -04:00
Juan Bustamante 17491986ed
Merge pull request #2006 from buildpacks/chore/issue-2005
Disabling the progress log when downloading files on windows
2023-12-19 17:57:21 -04:00
Juan Bustamante 9c64affb50
Update pkg/blob/downloader.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-19 15:57:04 -04:00
Juan Bustamante a3d2d40739
Adding a retry logic when downloading some packages, this is basically
to fix some errors on windows LCOW

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-19 15:56:50 -04:00
Juan Bustamante 1f277d49c3
fixing lint error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-18 13:27:49 -04:00
Juan Bustamante 271b39c21d
Refactoring the builder options to match the flatten options
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-18 13:07:51 -04:00
Juan Bustamante 02dcc1c613
Simplying the flatten modules logic after removing depth flag
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-18 12:47:06 -04:00
Natalie Arellano 4d8de330f0 Fetch lifecycle binaries from lifecycle image instead of restorer container
Hopefully fixes missing file issues on Linux

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-12-13 14:55:39 -05:00
Juan Bustamante 6a05e90ed3
reverting the dependencies update, it is still failing on LCOW
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-11 14:46:57 -05:00
Juan Bustamante 222359aaff
fixing dependencies
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-11 14:35:52 -05:00
Juan Bustamante 51839e1fd5
reverting some dependencies update to check windows failure
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-11 14:28:41 -05:00
Natalie Arellano c351409788 Improve error message
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-12-11 10:30:52 -05:00
Juan Bustamante 2b4f25d640
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-06 17:08:59 -05:00
Juan Bustamante e5d4417a4b
Merge pull request #1997 from buildpacks/chore/fix-labeler-issue-with-v5
Action labeler v5.0.0 was released yesterday (12/04) and it broke the definition rules
2023-12-06 16:46:02 -05:00
Juan Bustamante dc371f32d3
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-06 16:45:15 -05:00
Juan Bustamante 299af9a201
action labeler v5.0.0 was released yesterday and it broke the definition rules
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-12-06 10:43:12 -05:00
Juan Bustamante 27fb535605
Merge pull request #1992 from buildpacks/dependabot/go_modules/go-dependencies-4a05a813c0
build(deps): bump the go-dependencies group with 3 updates
2023-12-01 16:20:04 -05:00
Juan Bustamante 1700275b16
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-12-01 16:13:59 -05:00
dependabot[bot] 551ce80991
build(deps): bump the go-dependencies group with 3 updates
Bumps the go-dependencies group with 3 updates: [github.com/go-git/go-git/v5](https://github.com/go-git/go-git), [golang.org/x/crypto](https://github.com/golang/crypto) and [golang.org/x/oauth2](https://github.com/golang/oauth2).


Updates `github.com/go-git/go-git/v5` from 5.10.0 to 5.10.1
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.10.0...v5.10.1)

Updates `golang.org/x/crypto` from 0.15.0 to 0.16.0
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0)

Updates `golang.org/x/oauth2` from 0.14.0 to 0.15.0
- [Commits](https://github.com/golang/oauth2/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 22:05:36 +00:00
Juan Bustamante c13ef797a2
Merge pull request #1946 from sarthaksarthak9/color
Add --force-color flag
2023-11-27 17:02:08 -05:00
Juan Bustamante f85f1d0516
Merge branch 'main' into color 2023-11-27 16:34:59 -05:00
Juan Bustamante ccedc447eb
Merge branch 'main' into enhancement/jjbustamante/flatten-1880/part-1 2023-11-22 16:43:06 -05:00
Juan Bustamante 9c8223caef
Merge pull request #1990 from buildpacks/dependabot/go_modules/go-dependencies-a40e22e4d4
build(deps): bump the go-dependencies group with 6 updates
2023-11-22 16:37:09 -05:00
dependabot[bot] f2f5379fb5
build(deps): bump the go-dependencies group with 6 updates
Bumps the go-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.29.0` | `1.30.0` |
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | `1.7.0` | `1.8.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.14.0` | `0.15.0` |
| [golang.org/x/mod](https://github.com/golang/mod) | `0.13.0` | `0.14.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.13.0` | `0.14.0` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.4.0` | `0.5.0` |


Updates `github.com/onsi/gomega` from 1.29.0 to 1.30.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.29.0...v1.30.0)

Updates `github.com/spf13/cobra` from 1.7.0 to 1.8.0
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0)

Updates `golang.org/x/crypto` from 0.14.0 to 0.15.0
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.15.0)

Updates `golang.org/x/mod` from 0.13.0 to 0.14.0
- [Commits](https://github.com/golang/mod/compare/v0.13.0...v0.14.0)

Updates `golang.org/x/oauth2` from 0.13.0 to 0.14.0
- [Commits](https://github.com/golang/oauth2/compare/v0.13.0...v0.14.0)

Updates `golang.org/x/sync` from 0.4.0 to 0.5.0
- [Commits](https://github.com/golang/sync/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 21:14:00 +00:00
Juan Bustamante b5418c9538
Merge pull request #1987 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.5.1
build(deps): bump buildpacks/github-actions from 5.5.0 to 5.5.1
2023-11-22 15:30:59 -05:00
dependabot[bot] daff08b35c
build(deps): bump buildpacks/github-actions from 5.5.0 to 5.5.1
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.5.0...v5.5.1)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 20:14:46 +00:00
Juan Bustamante 682bff0e8c
Merge pull request #1975 from buildpacks/dependabot/github_actions/actions/github-script-7
build(deps): bump actions/github-script from 6 to 7
2023-11-22 15:14:03 -05:00
dependabot[bot] 1ce4577981
build(deps): bump actions/github-script from 6 to 7
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 08:27:29 +00:00
David Freilich 0397ab994d
Merge pull request #1982 from buildpacks/chore/fix-chocolatey
When running `choco install pack --source <package>` we need to point to a folder instead of a nupkg package
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-11-22 10:26:46 +02:00
Juan Bustamante fceff72123
Merge branch 'main' into chore/fix-chocolatey 2023-11-20 16:40:05 -05:00
Juan Bustamante ea5868415a
Merge pull request #1984 from Juneezee/chore/yaml
Replace `github.com/ghodss/yaml` with `gopkg.in/yaml.v3`
2023-11-20 15:27:26 -05:00
Juan Bustamante 499d7670ad
Implementing RFC-0123
During builder creation, end-users can provide the flag `--flatten` with
the buildpacks they want to put in one layer.

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-20 12:26:14 -05:00
sarthaksarthak9 9a280cc932 Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
try to write logic if --force-color is not the expected behavior.
2023-11-19 15:33:56 +05:30
Eng Zer Jun 2a8ea24ab7
Replace `github.com/ghodss/yaml` with `gopkg.in/yaml.v3`
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

Since `github.com/ghodss/yaml` is only used in test files, we can safely
replace it with `gopkg.in/yaml.v3`. The tests are still passing after
the change.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-19 13:58:52 +08:00
Natalie Arellano ec8ff79db3 Allow the build to proceed with /cnb/lifecycle/creator when the order contains extensions
The creator will error if the detected group contains extensions,
but if no extensions detect then the build can proceed and potentially succeed.

This avoids end-user headaches when popular builders contain extensions (see https://github.com/buildpacks/community/discussions/244)
but the extensions don't detect by default (and hence using the creator is just fine).

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-11-17 13:31:57 -05:00
Juan Bustamante 068d130185
New Flatten implementation Part 1
Removing --depth flag

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-17 12:58:13 -05:00
Juan Bustamante ae7d9ca1ea
When running choco install pack --source <package> we need to point to a
folder instead of a *.nupkg package

This should fix the issue:

The path 'D:\a\pack\pack\chocolatey\pack.0.32.1.nupkg' for the selected source could not be resolved.
 pack not installed. The package was not found with the source(s) listed.

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-17 10:58:05 -05:00
Peter Kota 1594a997b8
Merge branch 'main' into fix-args-display-inspect 2023-11-16 07:31:11 +01:00
Peter Kota 83add0cbcd feat(inspect): check `proc.Command.Entries` length before getting `proc.Command.Entries[1:]`
Signed-off-by: Peter Kota <kotapeter@gmail.com>
2023-11-16 07:30:53 +01:00
Juan Bustamante 16e645de8a
documenting new methods added
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-15 16:49:05 -05:00
Juan Bustamante 5f5f2af3a0
Implementing the methods to detect hardlinks on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-15 15:32:47 -05:00
Juan Bustamante 9c532299f6
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-15 15:32:47 -05:00
Juan Bustamante 21d309ed6a
Hardlinks are dereferenced in generated archives
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-15 15:32:09 -05:00
Juan Bustamante 2070b50a94
Merge pull request #1966 from lysliu/cli-s390x
Add pack cli support for IBM s390x
2023-11-15 15:25:12 -05:00
Juan Bustamante ae4ad890b2
Merge branch 'main' into cli-s390x 2023-11-15 15:06:43 -05:00
Juan Bustamante 9be282bf34
Merge pull request #1962 from PratikforCoding/binary
change in the process of download pr binaries
2023-11-15 14:48:28 -05:00
Juan Bustamante 97820b3703
Merge branch 'main' into binary 2023-11-15 14:24:05 -05:00
Peter Kota 012785743d chore: format `info_display.go`
Signed-off-by: Peter Kota <kotapeter@gmail.com>
2023-11-15 08:40:20 +01:00
Peter Kota 853d466562 fix: display `Command` remaining parts if `Args` is `nil`
Signed-off-by: Peter Kota <kotapeter@gmail.com>
2023-11-15 08:40:20 +01:00
Juan Bustamante b14250be04
Merge pull request #1969 from buildpacks/bugfix/jjbustamante/issue-1968
Retrying logic when pulling an image and platform doesn't match
2023-11-14 14:49:15 -05:00
Natalie Arellano 63cf11a67a Skip test on pack versions that aren't fixed yet
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-11-13 15:52:36 -05:00
Natalie Arellano 5451248a47 Add acceptance test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-11-13 15:41:12 -05:00
sarthaksarthak9 7c24b6ebdf Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
correct the logic errors
2023-11-11 09:49:44 +05:30
Juan Bustamante d022a54943
Adding a retry logic when pulling an image and the platform doesn't match, in this case we will retry without any platform defined (previous behavior)
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-11-10 17:57:59 -05:00
sarthaksarthak9 a1359c6db4 Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
"no longer need to define --force-color explicitly"
2023-11-10 22:59:40 +05:30
Yan Song Liu ef863b095c Add pack cli support for IBM s390x
Signed-off-by: Yan Song Liu <lysliu@cn.ibm.com>
2023-11-09 07:52:10 +08:00
sarthaksarthak9 6167685fc7 Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
add -force-color
2023-11-08 08:33:46 +05:30
sarthaksarthak9 6f0a34ba07 Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
ran make verify
2023-11-08 08:12:17 +05:30
PratikforCoding 94698e7b97 change in the process of download pr binaries
Signed-off-by: PratikforCoding <kotalpratik@gmail.com>
2023-11-05 13:22:31 +05:30
sarthaksarthak9 baeaeb68e0 Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
added force-color flag!!
2023-11-04 22:53:06 +05:30
Joe Kutner b12c9b3a0a
Merge pull request #1957 from jericop/imgutil-default-platform-change-test
Imgutil default platform change
2023-11-02 10:29:44 -05:00
Jerico Pena 18f6ba2a49 Bump imgutil dependency for default platform change
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-11-02 09:57:26 -04:00
Jerico Pena 6fae7c7803 Use imgutil fork to verify platform changes
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-11-01 23:32:25 -04:00
Jerico Pena 3d227c4b25 Add ServerVersion to docker client interface which is needed by imgutil
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-11-01 23:30:27 -04:00
Joe Kutner cf17f4c826
Merge pull request #1940 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.5.0
build(deps): bump buildpacks/github-actions from 5.4.0 to 5.5.0
2023-11-01 10:36:58 -05:00
dependabot[bot] 7d7aa9f1e5
build(deps): bump buildpacks/github-actions from 5.4.0 to 5.5.0
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.4.0...v5.5.0)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 14:39:31 +00:00
Juan Bustamante 1540969091
Merge branch 'main' into color 2023-11-01 09:25:43 -05:00
Joe Kutner a245fc7238
Merge pull request #1955 from buildpacks/dependabot/go_modules/go-dependencies-9a6f892bd7
build(deps): bump the go-dependencies group with 6 updates
2023-10-31 15:00:40 -05:00
Joe Kutner 7fdc3e35bc
Merge branch 'main' into dependabot/go_modules/go-dependencies-9a6f892bd7
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-10-31 14:30:54 -05:00
Joe Kutner e41bb2af73
Merge pull request #1919 from buildpacks/fix/log
Fix misleading log message when publishing a buildpack package
2023-10-31 10:19:44 -05:00
Juan Bustamante 27d3971fbc
Merge branch 'main' into fix/log
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-10-31 09:52:23 -05:00
Joe Kutner 7944bf1868
Merge pull request #1926 from WYGIN/build-config-env
`pack builder create` should accept builder env config
2023-10-31 09:02:08 -05:00
Juan Bustamante 1ffbc1010c
Merge branch 'main' into build-config-env
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-10-31 08:31:09 -05:00
dependabot[bot] 1aee0ce16c
build(deps): bump the go-dependencies group with 6 updates
Bumps the go-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/cli](https://github.com/docker/cli) | `24.0.6+incompatible` | `24.0.7+incompatible` |
| [github.com/docker/docker](https://github.com/docker/docker) | `24.0.6+incompatible` | `24.0.7+incompatible` |
| [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) | `5.9.0` | `5.10.0` |
| [github.com/google/go-cmp](https://github.com/google/go-cmp) | `0.5.9` | `0.6.0` |
| [github.com/onsi/gomega](https://github.com/onsi/gomega) | `1.28.0` | `1.29.0` |
| [golang.org/x/oauth2](https://github.com/golang/oauth2) | `0.12.0` | `0.13.0` |


Updates `github.com/docker/cli` from 24.0.6+incompatible to 24.0.7+incompatible
- [Commits](https://github.com/docker/cli/compare/v24.0.6...v24.0.7)

Updates `github.com/docker/docker` from 24.0.6+incompatible to 24.0.7+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.6...v24.0.7)

Updates `github.com/go-git/go-git/v5` from 5.9.0 to 5.10.0
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.9.0...v5.10.0)

Updates `github.com/google/go-cmp` from 0.5.9 to 0.6.0
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0)

Updates `github.com/onsi/gomega` from 1.28.0 to 1.29.0
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.28.0...v1.29.0)

Updates `golang.org/x/oauth2` from 0.12.0 to 0.13.0
- [Commits](https://github.com/golang/oauth2/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 01:44:30 +00:00
Joe Kutner 25deaf636f
Merge pull request #1949 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_17_2
Bump default lifecycle version & lifecycle library version 0.17.2
2023-10-30 20:42:06 -05:00
Joe Kutner 2e9dfd79b6
Merge branch 'main' into deps/jjbustamante/update-to-lifecycle-0_17_2
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-10-30 20:09:22 -05:00
Joe Kutner 94f859fd83
Merge pull request #1950 from edmorley/dependabot-grouping
Group minor/patch version Go Dependabot updates into one PR
2023-10-30 17:52:42 -05:00
Joe Kutner a74383aa58
Merge branch 'main' into dependabot-grouping
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-10-30 17:26:26 -05:00
Joe Kutner a1bc205a9f
Merge pull request #1951 from buildpacks/pack-image
Add buildpacksio/pack:<version>-base images to delivery
2023-10-30 16:58:32 -05:00
Joe Kutner f71a7dcb24
Merge branch 'main' into pack-image
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-10-30 16:32:44 -05:00
Joe Kutner 13802c2c92
Merge pull request #1933 from buildpacks/fix/run-image-multi-arch
Ensure the downloaded os/arch always matches the expected os/arch
2023-10-30 15:34:04 -05:00
Joe Kutner e2df802767
Merge branch 'main' into fix/run-image-multi-arch
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-10-30 15:04:57 -05:00
Natalie Arellano 01fbd91d76 Add floating :base tag
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-10-30 09:19:54 -04:00
Natalie Arellano 074586f437 Add buildpacksio/pack:<version>-base images to delivery
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-10-27 13:47:16 -04:00
Ed Morley fb7319ea88
Group minor/patch version Go Dependabot updates into one PR
Go minor/patch dependencies will now be grouped, using the new
Dependabot grouping feature:
https://github.blog/changelog/2023-08-17-grouped-version-updates-by-semantic-version-level-for-dependabot/

Major updates, as well as security updates will still be opened as
separate PRs. I've not grouped GitHub Actions update PRs, since the
volume is typically much lower for those.

In addition, the schedule has been changed from daily to weekly.

This reduces project maintenance toil (no more having to manually create
combined update PRs), plus makes it less painful for contributors to
subscribe to repository notifications (currently there is a lot of noise
from Dependabot PRs being opened/auto-rebased etc).

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2023-10-27 09:20:27 +01:00
Juan Bustamante 737d3e4c0b
Updating default lifecycle version to 0.17.2
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-10-26 16:54:11 -05:00
dependabot[bot] 97ed7b2460
build(deps): bump github.com/buildpacks/lifecycle from 0.17.1 to 0.17.2
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.17.1...v0.17.2)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-10-26 16:54:11 -05:00
sarthaksarthak9 5bb10e5d9a Signed-off-by: sarthaksarthak9 <sarthaknegi908@gmail.com>
Add --force-color flag to force color even when the output is not a TTY.
2023-10-26 22:36:51 +05:30
WYGIN 064f25e697 improved code coverage
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-26 10:34:16 +00:00
WYGIN 8714d1006a fix: code format
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-25 15:56:16 +00:00
WYGIN 43f6ec88f6 added requested changes and fix bugs
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-25 15:35:28 +00:00
Sai Kiran Maggidi d0ab0e823e
Merge branch 'buildpacks:main' into build-config-env 2023-10-21 19:00:49 +05:30
Joe Kutner a2b862cb42
Merge pull request #1921 from WYGIN/buildpack-new-targets-flag
added targets flag for buildpack new cli
2023-10-17 15:55:49 -05:00
Joe Kutner d84b81f60a
Merge branch 'main' into buildpack-new-targets-flag 2023-10-17 15:28:45 -05:00
Joe Kutner 368515eb12
Merge pull request #1935 from buildpacks/jkutner/dep-updates
Dependency Updates
2023-10-17 15:24:55 -05:00
Joe Kutner c47a0a7091
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/onsi/gomega-1.28.0' into jkutner/dep-updates 2023-10-17 13:41:07 -05:00
Joe Kutner 6ca1ba7edf
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/mod-0.13.0' into jkutner/dep-updates 2023-10-17 13:40:46 -05:00
Joe Kutner ac850ffb23
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/crypto-0.14.0' into jkutner/dep-updates 2023-10-17 13:40:08 -05:00
Joe Kutner 35632cfbe5
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/sync-0.4.0' into jkutner/dep-updates 2023-10-17 13:39:29 -05:00
Joe Kutner c45751dd78
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/term-0.13.0' into jkutner/dep-updates 2023-10-17 13:38:23 -05:00
Joe Kutner 2abd87bb1a
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/net-0.17.0' into jkutner/dep-updates 2023-10-17 13:37:15 -05:00
Joe Kutner 990b1f3a7d
Merge pull request #1924 from edmorley/heroku-builder-20
Suggest/trust `heroku/builder:20` instead of `heroku/buildpacks:20`
2023-10-16 18:32:09 -05:00
Natalie Arellano 83e94572b2 When downloading buildpacks or extensions for `pack build` or `pack builder create`,
ensure the os/arch matches the builder

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-10-12 11:31:19 -04:00
Natalie Arellano 5728158e3d Ensure the run image os/arch always matches:
- the builder for `pack build`
- the previous image for `pack rebase`

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-10-12 11:28:32 -04:00
WYGIN 5e9ce4c3d9 build-config-env layer oly added when it is not empty
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-12 06:11:46 +00:00
dependabot[bot] 8d6116f2f4
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 23:12:03 +00:00
WYGIN 6e085aef7a WIP added logic to add buildConfigEnvs to layer of image
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-08 08:31:18 +00:00
dependabot[bot] e862013d4a
build(deps): bump golang.org/x/term from 0.12.0 to 0.13.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/term/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:05:16 +00:00
dependabot[bot] 112549a174
build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.3.0 to 0.4.0.
- [Commits](https://github.com/golang/sync/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:05:08 +00:00
dependabot[bot] a5712647ca
build(deps): bump golang.org/x/crypto from 0.13.0 to 0.14.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/crypto/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:05:02 +00:00
dependabot[bot] 85bc2f97b7
build(deps): bump golang.org/x/mod from 0.12.0 to 0.13.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/mod/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 22:04:55 +00:00
WYGIN 7fa8e4dae7 WIP change from action to suffix and delim in builder.toml
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-05 15:47:15 +00:00
WYGIN 0035427e95 WIP added tests that still nedd to be fixed
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-05 10:00:34 +00:00
WYGIN fea99119ab WIP added required abstract test cases
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-04 15:45:11 +00:00
WYGIN effc5e5008 WIP added code to generate env files in buildConfigEnv dir
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-04 16:15:54 +05:30
Ed Morley 7bf91e7047
Suggest/trust `heroku/builder:20` instead of `heroku/buildpacks:20`
The `heroku/buildpacks:20` builder has been superseded by `heroku/builder:20`,
and the old builder is about to be deprecated:
https://github.com/heroku/cnb-builder-images/pull/394
https://github.com/heroku/cnb-builder-images/blob/main/README.md

As such, the suggested/trusted builders list has been updated accordingly.

I've also tweaked the Heroku builder descriptions to:
- mention the underlying Linux distro
- fix the alphabetical ordering of supported buildpack languages

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2023-10-03 13:59:56 +01:00
WYGIN cdd941717a will not be added to when is defined and not defined
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-03 05:54:30 +00:00
WYGIN e7902f875b lint fix
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-01 16:30:18 +00:00
WYGIN 9a5036c4b4 fix tests
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-01 15:28:36 +00:00
WYGIN 184f6c3ca9 added warns to targets flag
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-10-01 20:17:22 +05:30
WYGIN 77dac7f894 fix bugs
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-29 14:57:41 +00:00
WYGIN 210757cb79 refactored code & still need to fix bugs
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-29 17:48:50 +05:30
dependabot[bot] e18551d8b0
build(deps): bump github.com/onsi/gomega from 1.27.10 to 1.28.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.10 to 1.28.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.10...v1.28.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 22:39:02 +00:00
WYGIN 90c2195d14 removed persistent flag
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-28 20:58:04 +05:30
WYGIN ca5d09f3a4 fixed tests
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-28 14:52:16 +00:00
WYGIN e79226e5a0 added tests & show error msg when unknow target is passed
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-28 14:47:16 +05:30
WYGIN 16b83501b1 fix: bug of distro not being added to toml file
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-27 16:34:43 +05:30
WYGIN 057f53dd96 refactored code to receive flags from []string for --targets flag
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-27 10:39:22 +05:30
WYGIN 96b28c3bb1 added format to add --targets from cli
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-26 16:44:53 +05:30
WYGIN d543d17324 added targets flag for buildpack new cli
Signed-off-by: WYGIN <wygininc@gmail.com>
2023-09-25 17:43:14 +05:30
Natalie Arellano 79e769ab5d Fix misleading log message when publishing a buildpack package
When using --publish it should say "saved to registry" not "saved to docker daemon"

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-09-22 11:48:49 -04:00
Joe Kutner 3a994bdbff
Merge pull request #1913 from buildpacks/update/bp-api
Update acceptance fixtures to use newer Buildpack API versions
2023-09-19 18:59:00 -05:00
Natalie Arellano 175282ab08 Try to fix Windows
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-09-19 17:45:22 -04:00
Natalie Arellano a7a09ad6e1
Merge branch 'main' into update/bp-api 2023-09-19 15:48:26 -04:00
Natalie Arellano 2002e8447f Update acceptance fixtures to use newer Buildpack API versions
Lifecycle 0.18.0 and above will only support Buildpack API versions 0.7 and above

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-09-19 15:42:27 -04:00
Joe Kutner 491fd83706
Merge pull request #1905 from buildpacks/dependabot/go_modules/github.com/opencontainers/image-spec-1.1.0-rc5
build(deps): bump github.com/opencontainers/image-spec from 1.1.0-rc4 to 1.1.0-rc5
2023-09-19 14:39:27 -05:00
Joe Kutner fbe603d27f
Merge branch 'main' into dependabot/go_modules/github.com/opencontainers/image-spec-1.1.0-rc5 2023-09-19 13:18:10 -05:00
Joe Kutner 465730a8ad
Merge pull request #1908 from buildpacks/deps/jjbustamante/update-to-lifecycle-0_17_1
Bump default lifecycle version & lifecycle library version
2023-09-19 12:57:58 -05:00
dependabot[bot] 92a601ab52
build(deps): bump github.com/opencontainers/image-spec
Bumps [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec) from 1.1.0-rc4 to 1.1.0-rc5.
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.1.0-rc4...v1.1.0-rc5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 17:36:37 +00:00
Joe Kutner d37ee8570b
Merge branch 'main' into deps/jjbustamante/update-to-lifecycle-0_17_1 2023-09-19 12:34:26 -05:00
Joe Kutner 7af3ba2289
Merge pull request #1909 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.17.1
build(deps): bump github.com/buildpacks/lifecycle from 0.17.0 to 0.17.1
2023-09-19 12:33:56 -05:00
Juan Bustamante 0111663752
Merge branch 'main' into dependabot/go_modules/github.com/buildpacks/lifecycle-0.17.1 2023-09-19 11:47:50 -05:00
Joe Kutner df5a7c2c05
Merge pull request #1911 from buildpacks/fix/acceptance
Simplifies acceptance tests by moving fixtures up one directory
2023-09-19 10:33:49 -05:00
Natalie Arellano 6944b162b9 Simplifies acceptance tests by moving fixtures up one directory
At some point, we might have intended to have different fixtures per Buildpack API version.
However, we have only ever had one sub-folder (0.2).
With the lifecycle dropping support for Buildpack API versions less than 0.7,
we should rename or remove this sub-folder.
Opting to remove it, to avoid having to rename it in the future.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-09-19 11:04:58 -04:00
dependabot[bot] dea54075a0
build(deps): bump github.com/buildpacks/lifecycle from 0.17.0 to 0.17.1
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.17.0...v0.17.1)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 22:23:19 +00:00
Juan Bustamante a31ee3b386
Updating default lifecycle version to 0.17.1
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-09-18 12:42:53 -05:00
Joe Kutner 6f11101837
Merge pull request #1904 from buildpacks/jkutner/deps
Dependency updates for GHA
2023-09-14 11:57:51 -05:00
dependabot[bot] 3055e62a50
build(deps): bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-14 11:29:12 -05:00
dependabot[bot] 3f5ca1dec8
build(deps): bump docker/setup-buildx-action from 2 to 3
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-14 11:29:10 -05:00
dependabot[bot] 8ba3c140e0
build(deps): bump docker/setup-qemu-action from 2 to 3
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-14 11:28:43 -05:00
Joe Kutner 7d34676545
Merge pull request #1902 from buildpacks/dependabot/go_modules/github.com/go-git/go-git/v5-5.9.0
build(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0
2023-09-14 11:23:45 -05:00
dependabot[bot] f2de422f76
build(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.8.1 to 5.9.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.8.1...v5.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 22:55:58 +00:00
Joe Kutner f364382ce6
Merge pull request #1898 from buildpacks/dependabot/github_actions/crazy-max/ghaction-chocolatey-3
build(deps): bump crazy-max/ghaction-chocolatey from 2 to 3
2023-09-12 11:05:10 -05:00
Joe Kutner e592e6a458
Merge branch 'main' into dependabot/github_actions/crazy-max/ghaction-chocolatey-3 2023-09-12 10:33:42 -05:00
Joe Kutner 6ec6d74ee4
Merge pull request #1892 from buildpacks/dependabot/go_modules/github.com/docker/cli-24.0.6incompatible
build(deps): bump github.com/docker/cli from 24.0.5+incompatible to 24.0.6+incompatible
2023-09-12 10:13:13 -05:00
Joe Kutner 2cb90dd2b2
Merge branch 'main' into dependabot/go_modules/github.com/docker/cli-24.0.6incompatible 2023-09-12 09:43:15 -05:00
Joe Kutner 3b7a55cbf5
Merge pull request #1894 from buildpacks/bugfix/jjbustamante/issue-1759-2
Missing test case when handling docker context - continuation of the solution to fix 1759
2023-09-11 19:59:36 -05:00
Joe Kutner 72f9ddef5e
Merge branch 'main' into bugfix/jjbustamante/issue-1759-2 2023-09-11 19:38:08 -05:00
Joe Kutner 64de584c91
Merge pull request #1897 from buildpacks/fix/target-validation
Fix target validation when buildpack fails to declare field
2023-09-11 19:36:49 -05:00
dependabot[bot] 20c5b272af
build(deps): bump crazy-max/ghaction-chocolatey from 2 to 3
Bumps [crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey) from 2 to 3.
- [Release notes](https://github.com/crazy-max/ghaction-chocolatey/releases)
- [Commits](https://github.com/crazy-max/ghaction-chocolatey/compare/v2...v3)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-chocolatey
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 22:54:41 +00:00
Natalie Arellano bc6c578d43 Fix target validation when buildpack fails to declare field
Optional fields are treated as wildcards when not specified

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-09-11 13:53:12 -07:00
Juan Bustamante 5fbee86c9e
Missing test case when handling docker context
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-09-07 15:04:08 -05:00
Joe Kutner ad32136e58
Merge pull request #1887 from buildpacks/bugfix/jjbustamante/issue-1886
Fixing out of memory using `pack builder create` on pack 0.30.0
2023-09-07 09:58:41 -05:00
Juan Bustamante 5566436f39
Fixing out of memory with Usage:
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-09-07 09:29:40 -05:00
dependabot[bot] df681f3c33
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 24.0.5+incompatible to 24.0.6+incompatible.
- [Commits](https://github.com/docker/cli/compare/v24.0.5...v24.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 22:21:25 +00:00
Joe Kutner c7723b422d
Merge pull request #1891 from buildpacks/jkutner/deps
Dependency updates
2023-09-06 12:09:08 -05:00
Joe Kutner d5db5edaad
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/crypto-0.13.0' into jkutner/deps 2023-09-06 10:30:20 -05:00
Joe Kutner 3d6d4658a2
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/docker-24.0.6incompatible' into jkutner/deps 2023-09-06 10:29:33 -05:00
Joe Kutner edc2ddc588
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/oauth2-0.12.0' into jkutner/deps 2023-09-06 10:29:16 -05:00
Joe Kutner 9510236d23
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/text-0.13.0' into jkutner/deps 2023-09-06 10:28:30 -05:00
Joe Kutner 81dbd762f8
Merge remote-tracking branch 'origin/dependabot/github_actions/actions/checkout-4' into jkutner/deps 2023-09-06 10:27:59 -05:00
Joe Kutner 6329e898bc
Merge pull request #1877 from colincasey/add_image_labels_to_buildpack
Add custom label metadata to packaged buildpacks
2023-09-06 10:22:02 -05:00
Joe Kutner 9c328bd298
Merge branch 'main' into add_image_labels_to_buildpack 2023-09-06 09:52:06 -05:00
dependabot[bot] 54dcdd848d
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.5+incompatible to 24.0.6+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.5...v24.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 14:48:05 +00:00
dependabot[bot] 349761e2d5
build(deps): bump golang.org/x/oauth2 from 0.11.0 to 0.12.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 14:46:59 +00:00
dependabot[bot] c110ed0d5a
build(deps): bump golang.org/x/crypto from 0.12.0 to 0.13.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/crypto/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 14:46:31 +00:00
dependabot[bot] e0c68c88d8
build(deps): bump golang.org/x/text from 0.12.0 to 0.13.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 14:46:17 +00:00
Joe Kutner 2f00a053de
Merge pull request #1878 from buildpacks/bugfix/jjbustamante/issue-1759
Adding support for reading docker context
2023-09-06 09:45:02 -05:00
Joe Kutner 12726d552b
Merge branch 'main' into bugfix/jjbustamante/issue-1759 2023-09-06 09:17:59 -05:00
Joe Kutner 549e7b807f
Merge pull request #1879 from buildpacks/bugfix/jjbustamante/issue-1875
Adding /tmp folder to pack image distribution
2023-09-06 08:34:25 -05:00
Joe Kutner f00e030ee0
Merge branch 'main' into bugfix/jjbustamante/issue-1875 2023-09-06 08:07:05 -05:00
Joe Kutner d225948b6e
Merge pull request #1882 from buildpacks/bugfix/jjbustamante/issue-1881
Adding configuration to OCI Layout format when executing phases 1 by 1
2023-09-06 08:06:10 -05:00
Juan Bustamante cc49e298da
adding some unit testing
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-09-05 11:32:47 -05:00
dependabot[bot] ac2b645d08
build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 22:23:48 +00:00
Juan Bustamante 31ef21e198
Adding configuration to OCI Layout format when executing phases 1 by 1
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-09-04 17:16:19 -05:00
Colin Casey 13cb3acf6f Run `make tidy`
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-31 09:40:26 -03:00
Colin Casey 2214603309 Added test for failing image label
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-31 09:37:50 -03:00
Juan Bustamante 0320ff1507
Adding /tmp folder to pack image distribution
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-08-30 09:24:02 -05:00
Juan Bustamante cb6d13b3ff
Adding support for reading docker context
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-08-29 13:21:50 -05:00
Colin Casey 945470694c Add custom label metadata to packaged buildpacks
Introduces a new flag `--label` to the `pack buildpack package` command which:
* can be used to add labels one at a time (e.g.; `--label a=1 --label b=2`)
* can be used to add multiple labels in CSV format (e.g.; `--label a=1,b=2`)

The labels are parsed into a `map[string]string` and added as label metadata to the packaged OCI or `.cnb` file.

Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-28 11:30:34 -03:00
Joe Kutner b0d4f27aed
Merge pull request #1871 from buildpacks/quotes-to-help
Improvements to --cache help
2023-08-26 11:56:54 -05:00
Joe Kutner 0735cb24b5
Merge branch 'main' into quotes-to-help 2023-08-26 11:32:37 -05:00
Joe Kutner 0562a9d5bd
Merge pull request #1872 from buildpacks/fix/client-withkeychain
Provides client keychain to lifecycle instead of the default keychain
2023-08-26 11:17:36 -05:00
Joe Kutner eef0a86b87
Merge branch 'main' into fix/client-withkeychain 2023-08-26 10:53:41 -05:00
Joe Kutner 823831631c
Merge branch 'main' into quotes-to-help 2023-08-26 10:41:06 -05:00
Joe Kutner 5e61a38d41
Merge pull request #1869 from buildpacks/dependabot/github_actions/buildpacks/github-actions-5.4.0
build(deps): bump buildpacks/github-actions from 5.3.1 to 5.4.0
2023-08-26 10:32:56 -05:00
Joe Kutner 96c0ddfe9a
Merge branch 'main' into fix/client-withkeychain 2023-08-26 10:15:24 -05:00
dependabot[bot] e451393957
build(deps): bump buildpacks/github-actions from 5.3.1 to 5.4.0
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.3.1...v5.4.0)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-26 15:05:47 +00:00
Joe Kutner bdf71578ca
Merge pull request #1874 from dlion/remove-legacy-warning
Remove legacy beta release message
2023-08-26 10:05:04 -05:00
Joe Kutner dca7d5931b
Merge branch 'main' into remove-legacy-warning 2023-08-26 09:33:52 -05:00
Joe Kutner cdd0757037
Merge pull request #1873 from buildpacks/fix/version-project-toml
When additional buildpack is missing version, try to use the latest one
2023-08-26 08:37:53 -05:00
Joe Kutner b5ef5dec67
Merge branch 'main' into fix/version-project-toml 2023-08-26 08:11:47 -05:00
Joe Kutner e03ab0ba1e
Merge pull request #1876 from buildpacks/bugfix/jjbustamante/issue-1870
Fixing error connecting to a remote daemon over ssh
2023-08-26 08:11:29 -05:00
Juan Bustamante cf7aa96d30
fixing error connecting to a remote daemon over ssh
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-08-25 14:02:07 -05:00
Domenico Luciani a24f9db29f Remove legacy beta release message
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-24 17:10:03 +02:00
Natalie Arellano 3c4307ea1d When additional buildpack is missing version, try to use the latest one
Fixes https://github.com/buildpacks/pack/issues/1862

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-23 14:52:40 -04:00
Natalie Arellano 21d1460e84 Provides client keychain to lifecycle instead of the default keychain
Fixes https://github.com/buildpacks/pack/issues/1845

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-23 13:53:13 -04:00
Natalie Arellano d413bd433c Improvemnts to --cache help
- Add quotes, otherwise the option will be ignored
- Remove trailing ; which causes `invalid field '' must be a key=value pair` error
- Clarify that cache as image requires --publish

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-22 17:00:48 -04:00
Joe Kutner c38f7da1b4
Merge pull request #1863 from buildpacks/dependabot/go_modules/golang.org/x/oauth2-0.11.0
build(deps): bump golang.org/x/oauth2 from 0.10.0 to 0.11.0
2023-08-11 08:18:08 -05:00
Joe Kutner b144721952
Merge branch 'main' into dependabot/go_modules/golang.org/x/oauth2-0.11.0 2023-08-11 07:55:25 -05:00
Joe Kutner 07a8c20418
Merge pull request #1866 from dlion/1799-fix-rebasable-logic-and-test
Fix the rebasable flag logic in case of missing label
2023-08-10 19:31:20 -05:00
Joe Kutner 3967c67cd8
Merge branch 'main' into 1799-fix-rebasable-logic-and-test 2023-08-10 19:12:38 -05:00
Terence Lee 82665a51d0
Merge pull request #1868 from buildpacks/bump-lifecycle
Bump lifecycle
2023-08-10 18:33:01 -04:00
Natalie Arellano 7bfa5f0adb Bump lifecycle
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-10 16:09:11 -04:00
Natalie Arellano a780ef4e06
Merge branch 'main' into 1799-fix-rebasable-logic-and-test 2023-08-10 16:03:35 -04:00
Joe Kutner 7c8835372e
Merge branch 'main' into dependabot/go_modules/golang.org/x/oauth2-0.11.0 2023-08-10 12:12:41 -05:00
Joe Kutner 325df359c6
Merge pull request #1864 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.17.0
build(deps): bump github.com/buildpacks/lifecycle from 0.17.0-rc.4 to 0.17.0
2023-08-10 12:12:28 -05:00
Domenico Luciani 623c198247 Add test for the GetLabel function
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-10 10:56:54 +02:00
Domenico Luciani fef3731552 Fix the rebasable flag logic in case of missing label
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-09 18:17:48 +02:00
dependabot[bot] f56a203422
build(deps): bump github.com/buildpacks/lifecycle
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.17.0-rc.4 to 0.17.0.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.17.0-rc.4...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 22:58:27 +00:00
dependabot[bot] d6713fadca
build(deps): bump golang.org/x/oauth2 from 0.10.0 to 0.11.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 22:56:18 +00:00
Joe Kutner bad18ec32e
Merge pull request #1861 from buildpacks/jkutner/deps
Dependency updates
2023-08-05 10:49:35 -05:00
Joe Kutner 425ae0eeb3
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/text-0.12.0' into jkutner/deps 2023-08-05 10:01:15 -05:00
Joe Kutner b5e7005dce
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/crypto-0.12.0' into jkutner/deps 2023-08-05 10:00:36 -05:00
Joe Kutner e596158e44
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/term-0.11.0' into jkutner/deps 2023-08-05 09:58:57 -05:00
dependabot[bot] 7047f9d470
build(deps): bump golang.org/x/text from 0.11.0 to 0.12.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 22:46:55 +00:00
dependabot[bot] b0730ab973
build(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 22:46:48 +00:00
dependabot[bot] abcfb5b68c
build(deps): bump golang.org/x/term from 0.10.0 to 0.11.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/term/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 22:46:41 +00:00
dependabot[bot] 4c8cb8b3c0
build(deps): bump buildpacks/github-actions from 5.3.0 to 5.3.1
Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/buildpacks/github-actions/releases)
- [Commits](https://github.com/buildpacks/github-actions/compare/v5.3.0...v5.3.1)

---
updated-dependencies:
- dependency-name: buildpacks/github-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 22:09:09 +00:00
Joe Kutner 7a46328a85
Merge pull request #1855 from buildpacks/dependabot/go_modules/github.com/google/go-containerregistry-0.16.1
build(deps): bump github.com/google/go-containerregistry from 0.15.2 to 0.16.1
2023-08-04 14:45:39 -05:00
dependabot[bot] 055923dc75
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.15.2 to 0.16.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.15.2...v0.16.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 19:17:22 +00:00
Joe Kutner 9d7a6376b5
Merge pull request #1852 from buildpacks/feature/add-daemon-to-restorer
Add -daemon to restorer for newer platform
2023-08-04 14:15:40 -05:00
Joe Kutner ec60f3e031
Merge branch 'main' into feature/add-daemon-to-restorer 2023-08-04 13:52:00 -05:00
Joe Kutner 246234980d
Merge pull request #1806 from dlion/1799-pack-inspect
pack inspect <app-image> shows if the image is rebasable or not
2023-08-04 13:51:10 -05:00
Natalie Arellano e84c461e3d
Merge branch 'main' into feature/add-daemon-to-restorer 2023-08-04 12:21:10 -04:00
Natalie Arellano e53da8e18d
Merge branch 'main' into 1799-pack-inspect 2023-08-04 12:18:11 -04:00
Joe Kutner a90f6fbf29
Merge pull request #1841 from colincasey/fix_1320
Apply package config from meta-buildpack folder in pack build
2023-08-04 10:49:13 -05:00
Domenico Luciani fe499fb5ca Change the tests and the implementation of the template to follow the assumption that the rebasable is true when true or not set, false otherwise
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 64e2364c9b Now the rebasable label value changes depending on the image rebasability which until now was always set as a true
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 0a22bf2168 Adds implementation for extension and rebasable
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani ded989475b Extracts mocked image generators into helper functions
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani fe6051a50d Refactors the Print method improving the readibility and separation of concerns
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 22de7ccae1 Fixs acceptance tests and implements rebasable on the inspect command
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 88272d813f Fixs json tests and adds tests for local and remote the rebasable images
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 56566db5a4 Fixs yaml tests and adds test for local and remote the rebasable images
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 23174d127f Fixs toml tests and adds tests fort the local and remote rebasable images
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:42 +02:00
Domenico Luciani 83bbe1f754 Adds test for the remote rebasable image
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:41 +02:00
Domenico Luciani 26535882a4 Introduces the rebasable label into the human readable output for local rebasable images
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-08-04 17:22:41 +02:00
Joe Kutner 6659dc8f52
Merge branch 'main' into fix_1320 2023-08-04 10:20:52 -05:00
Joe Kutner 69395593ef
Merge pull request #1856 from jericop/multi-arch-delivery-docker
Update docker-delivery workflow to create multi-arch images
2023-08-04 10:18:08 -05:00
Natalie Arellano 6f85f8822f Update ext fixture SHA for Windows
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 11:10:32 -04:00
Natalie Arellano f0d8f7767c Update ext fixture SHA again
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 10:37:54 -04:00
Colin Casey 7c3818f94b Re-run actions
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-04 11:32:36 -03:00
Natalie Arellano 77d3afcd85 Fix unit tests by forcing `hasExtensions()` to return true when we are testing extensions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 10:28:55 -04:00
Natalie Arellano 86bbe3146a Bump lifecycle version
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 10:19:54 -04:00
Natalie Arellano c5d52ad415 Fix acceptance test to have invalid ref, so that it doesn't actually try to pull 'some-not-exist-run-image'
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 10:19:19 -04:00
Natalie Arellano 272b5a3476 Update ext fixture SHA
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-04 10:10:26 -04:00
Colin Casey e739ca6450 Use `filepath` instead of `path` in tests
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-04 11:04:40 -03:00
Jerico Pena 1bb7f0b36c
Merge branch 'main' into multi-arch-delivery-docker 2023-08-03 22:07:33 -04:00
Jerico Pena 78476348da Use golang:1.20 as the base image instead of alpine
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-08-03 21:31:41 -04:00
Colin Casey 541852db03
Merge branch 'buildpacks:main' into fix_1320 2023-08-03 18:59:16 -03:00
Colin Casey 6eeae0b8a5 Addressing PR review comments
- extracted the fetching of buildpacks from package.toml into its own function
- added test to cover error scenario

Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-08-03 16:55:48 -03:00
Jerico Pena 0ad7c0a42d Update docker-delivery workflow to create multi-arch images
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-08-03 10:02:15 -04:00
Natalie Arellano 60117d5de3 Silence noisy log messages
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-02 14:47:50 -04:00
Joe Kutner dd4a8adc33
Merge pull request #1843 from dlion/fixed-lint-version
Fixed version of the linter to 1.51.1
2023-08-02 10:42:46 -05:00
Joe Kutner 2595950565
Merge branch 'main' into fixed-lint-version 2023-08-02 10:20:48 -05:00
Natalie Arellano c8ae18e9dc Add acceptance test and ensure that we pull the run image before restore
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-08-01 11:02:32 -04:00
Natalie Arellano 86897464d5 Add -daemon to restorer for newer platform
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-31 11:47:09 -04:00
Colin Casey 5e5c9c0adf Fixed lint
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 15:19:51 -03:00
Colin Casey b6440b820c Added unit test
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 15:15:53 -03:00
Colin Casey 2c9fe59f4f Merge branch 'main' into fix_1320
* main:
  build(deps): bump github.com/go-git/go-git/v5 from 5.8.0 to 5.8.1
  build(deps): bump github.com/onsi/gomega from 1.27.8 to 1.27.10
  build(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.0
  build(deps): bump github.com/docker/cli
  build(deps): bump github.com/docker/docker
  Update the summary of `yank`
  Release to Ubuntu Lunar PPA
  build(deps): bump github.com/docker/docker
  build(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0
  build(deps): bump github.com/opencontainers/image-spec
  build(deps): bump github.com/docker/cli

# Conflicts:
#	go.mod
2023-07-27 14:03:34 -03:00
Colin Casey 6dd09f686c Added feature flag to acceptance test to skip if pack < 0.30
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 13:23:58 -03:00
dependabot[bot] 4a52694ff2 build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.2+incompatible to 24.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.2...v24.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 13:23:58 -03:00
Aidan Delaney 654d20ae4a Release to Ubuntu Lunar PPA
Generate a release for Ubuntu Lunar Lobster

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 13:23:58 -03:00
Colin Casey 8b15b33377 Apply package config from meta-buildpack folder in pack build
Signed-off-by: Colin Casey <casey.colin@gmail.com>
2023-07-27 13:23:58 -03:00
Joe Kutner 02e0139290
Merge pull request #1840 from AidanDelaney/update-yank-summary
Update the summary of `yank`
2023-07-27 08:31:15 -07:00
Joe Kutner 90106e1da6
Merge branch 'main' into update-yank-summary 2023-07-27 08:01:29 -07:00
Joe Kutner e99f639b67
Merge pull request #1851 from buildpacks/dependabot/go_modules/github.com/go-git/go-git/v5-5.8.1
build(deps): bump github.com/go-git/go-git/v5 from 5.8.0 to 5.8.1
2023-07-27 08:01:06 -07:00
Joe Kutner 1bba948679
Merge branch 'main' into fixed-lint-version 2023-07-27 08:00:40 -07:00
dependabot[bot] 4d9b0bed51
build(deps): bump github.com/go-git/go-git/v5 from 5.8.0 to 5.8.1
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.8.0 to 5.8.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.8.0...v5.8.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 22:39:35 +00:00
Joe Kutner 6a17dfea56
Merge pull request #1842 from buildpacks/jkutner/deps
Dependency Updates
2023-07-26 08:24:44 -07:00
Joe Kutner c886c6004e
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/onsi/gomega-1.27.10' into jkutner/deps 2023-07-26 07:55:59 -07:00
Joe Kutner e30d67a6f9
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/go-git/go-git/v5-5.8.0' into jkutner/deps 2023-07-26 07:55:17 -07:00
Joe Kutner 24ec5aea12
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/cli-24.0.5incompatible' into jkutner/deps 2023-07-26 07:54:50 -07:00
Joe Kutner 0a95b1d067
Merge branch 'main' into jkutner/deps 2023-07-26 07:54:17 -07:00
dependabot[bot] 02ab9ecac5
build(deps): bump github.com/onsi/gomega from 1.27.8 to 1.27.10
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.8 to 1.27.10.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.8...v1.27.10)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 22:12:07 +00:00
dependabot[bot] 0f99c7e5d7
build(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.7.0...v5.8.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 18:27:43 +00:00
dependabot[bot] c424b73bf9
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 24.0.2+incompatible to 24.0.5+incompatible.
- [Commits](https://github.com/docker/cli/compare/v24.0.2...v24.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 18:27:01 +00:00
Terence Lee 10195e2b9f
Merge pull request #1847 from buildpacks/dependabot/go_modules/github.com/docker/docker-24.0.5incompatible
build(deps): bump github.com/docker/docker from 24.0.2+incompatible to 24.0.5+incompatible
2023-07-25 13:25:41 -05:00
dependabot[bot] 30fe8b07e1
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.2+incompatible to 24.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.2...v24.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 22:56:21 +00:00
Domenico Luciani 22c47a7bc0 Fixed version of the linter 1.51.1
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-07-20 14:35:19 +02:00
Joe Kutner be54372665
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/cli-24.0.4incompatible' into jkutner/deps 2023-07-19 09:22:33 -05:00
Joe Kutner 06a489e36f
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/opencontainers/image-spec-1.1.0-rc4' into jkutner/deps 2023-07-19 09:21:17 -05:00
Joe Kutner d1c670202b
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/oauth2-0.10.0' into jkutner/deps 2023-07-19 09:21:02 -05:00
Joe Kutner 95104f0af0
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/docker-24.0.4incompatible' into jkutner/deps 2023-07-19 09:20:46 -05:00
Joe Kutner 3364a6b4b8
Merge pull request #1838 from AidanDelaney/support-ubuntu-lunar
Release to Ubuntu Lunar PPA
2023-07-18 13:43:36 -05:00
Aidan Delaney 9e17e7681e Update the summary of `yank`
Do not summarise the `yank` subcommand using the term "yank".  Instead
describe the effect of the operation.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2023-07-12 15:17:11 +01:00
Aidan Delaney a7945beec7 Release to Ubuntu Lunar PPA
Generate a release for Ubuntu Lunar Lobster

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2023-07-11 08:32:55 +01:00
dependabot[bot] 4036860f60
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.2+incompatible to 24.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.2...v24.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 22:20:30 +00:00
dependabot[bot] a799a8560a
build(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 22:20:16 +00:00
dependabot[bot] c91b4e6c7d
build(deps): bump github.com/opencontainers/image-spec
Bumps [github.com/opencontainers/image-spec](https://github.com/opencontainers/image-spec) from 1.1.0-rc3 to 1.1.0-rc4.
- [Release notes](https://github.com/opencontainers/image-spec/releases)
- [Changelog](https://github.com/opencontainers/image-spec/blob/main/RELEASES.md)
- [Commits](https://github.com/opencontainers/image-spec/compare/v1.1.0-rc3...v1.1.0-rc4)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/image-spec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 22:20:05 +00:00
dependabot[bot] f7e5575501
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 24.0.2+incompatible to 24.0.4+incompatible.
- [Commits](https://github.com/docker/cli/compare/v24.0.2...v24.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 22:19:56 +00:00
Joe Kutner cc6b0013f3
Merge pull request #1780 from edithwuly/benchmark_alert_user
Change alert-comment-cc-users to maintainers
2023-07-10 13:02:57 -05:00
Joe Kutner 522e1dd913
Merge branch 'main' into benchmark_alert_user 2023-07-10 12:43:02 -05:00
Joe Kutner 39d20aa515
Merge pull request #1826 from buildpacks/bump-lifecycle
Bump lifecycle library version
2023-07-10 10:35:53 -05:00
Natalie Arellano 1ae5d72726 Merge branch 'main' into bump-lifecycle 2023-07-10 11:15:30 -04:00
Joe Kutner 88a998d8f1
Merge pull request #1822 from ESWZY/merge-toml-writing
Merge the same TOML file writing logic
2023-07-10 09:56:27 -05:00
Joe Kutner ce6972f8ce
Merge branch 'main' into merge-toml-writing 2023-07-10 09:28:05 -05:00
Joe Kutner c3f78c715d
Merge pull request #1823 from edmorley/patch-1
Update suggested builder descriptions for the Heroku builder images
2023-07-10 08:49:55 -05:00
Joe Kutner bc1b3713a3
Merge branch 'main' into patch-1 2023-07-10 08:24:16 -05:00
Joe Kutner f9149b7bc6
Merge pull request #1815 from buildpacks/fix/creds-for-run-ext
Fix: when running restore, provide creds for run image if there are r…
2023-07-10 08:21:03 -05:00
Joe Kutner c9523dc48c
Merge branch 'main' into fix/creds-for-run-ext 2023-07-10 07:53:41 -05:00
Joe Kutner 515c5874a6
Merge pull request #1833 from buildpacks/jkutner/deps
Dependency updates
2023-07-09 21:14:14 -05:00
Joe Kutner 5036b4e94b
Merge branch 'main' into jkutner/deps 2023-07-09 20:46:38 -05:00
Joe Kutner 3921f9e54b
Merge pull request #1801 from buildpacks/fix/log-message
Fix log message when buildpack doesn't satisfy target constraints for builder
2023-07-09 20:20:15 -05:00
Joe Kutner ca7eae010c
Merge branch 'dependabot/go_modules/golang.org/x/text-0.11.0' of https://github.com/buildpacks/pack into jkutner/deps 2023-07-09 20:05:00 -05:00
Joe Kutner d3c153701a
Merge branch 'dependabot/go_modules/golang.org/x/mod-0.12.0' of https://github.com/buildpacks/pack into jkutner/deps 2023-07-09 20:04:20 -05:00
Joe Kutner 699f3fdf65
Merge branch 'dependabot/go_modules/golang.org/x/term-0.10.0' of https://github.com/buildpacks/pack into jkutner/deps 2023-07-09 20:03:32 -05:00
Joe Kutner 1ac6818f9c
Merge branch 'dependabot/go_modules/golang.org/x/crypto-0.11.0' of https://github.com/buildpacks/pack into jkutner/deps 2023-07-09 20:02:36 -05:00
Joe Kutner a581ebc091
Merge branch 'main' into fix/log-message 2023-07-09 19:53:24 -05:00
Joe Kutner 34a6b7c725
Merge pull request #1787 from buildpacks/fix/flatten-tar-extras-2
Explode flattened buildpacks when `pack build`
2023-07-09 19:52:53 -05:00
Natalie Arellano d7318e98a9 Bump all the way to lifecycle 0.17.0-rc.3
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-06 12:49:45 -04:00
dependabot[bot] 90d7685fb2
build(deps): bump golang.org/x/crypto from 0.9.0 to 0.11.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.11.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 22:07:06 +00:00
dependabot[bot] 28cae1cfa5
build(deps): bump golang.org/x/term from 0.8.0 to 0.10.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.8.0 to 0.10.0.
- [Commits](https://github.com/golang/term/compare/v0.8.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-05 22:06:56 +00:00
Natalie Arellano 005776942b Fix compat by only passing --force when `pack rebase` supports it
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-05 17:02:50 -04:00
Natalie Arellano d57468acba Fix acceptance by passing --force to rebaser when new run image not found in existing metadata
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-05 16:28:57 -04:00
Natalie Arellano 090e030612 Fix unit
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-05 15:53:30 -04:00
Natalie Arellano 6219bbb137 Fix lint
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-05 15:24:19 -04:00
Natalie Arellano d4c95a24cb Bump lifecycle library version and tidy
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-07-05 15:09:02 -04:00
Woa 8b81013c79
Merge the same TOML file writing logic
Signed-off-by: Woa <me@wuzy.cn>
2023-07-05 09:37:59 +08:00
dependabot[bot] 6949edfe57
build(deps): bump golang.org/x/mod from 0.10.0 to 0.12.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.10.0 to 0.12.0.
- [Commits](https://github.com/golang/mod/compare/v0.10.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 22:39:18 +00:00
dependabot[bot] 3943e545de
build(deps): bump golang.org/x/text from 0.9.0 to 0.11.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.9.0 to 0.11.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.9.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 22:39:02 +00:00
Ed Morley 1f112c1f20
Update suggested builder descriptions for the Heroku builder images
Since the Heroku builder images now support more languages.

See:
https://github.com/heroku/builder#readme

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2023-07-04 18:12:44 +01:00
Natalie Arellano 16bd357934 Fix: also provide creds if the run image reference changed (even if it was only switched and we don't need to run extend)
as the restorer also needs to update the digest & target data.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-30 14:17:47 -04:00
Natalie Arellano 8c5813d843 Fix: when running restore, provide creds for run image if there are run image extensions
Otherwise the restorer could fail to find the run image, resulting in unexpected behavior

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-30 10:41:16 -04:00
Juan Bustamante d9a254b7f1
removing Focus
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-29 19:02:43 -05:00
Juan Bustamante f956222106
Attempt to fix CodeQL errors
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-29 18:08:22 -05:00
Juan Bustamante d5ab961675
adding test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-29 09:55:51 -05:00
Juan Bustamante c5aa19940c
removing unused code
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-28 16:10:33 -05:00
Juan Bustamante 744aefc9d4
Merge branch 'main' into fix/flatten-tar-extras-2 2023-06-28 14:07:08 -07:00
Juan Bustamante e73699a1fd
merging suggestions from Natalie and Joe to simplify the code
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-28 15:37:53 -05:00
Joe Kutner f1619bfa85
Merge pull request #1814 from buildpacks/jkutner/deps
Dependency updates
2023-06-28 12:46:59 -05:00
Joe Kutner e7fd026416
Rollback github.com/BurntSushi/toml to v1.2.1 due to test failure on v1.3.2
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-06-28 12:18:32 -05:00
Joe Kutner a317056064
Merge branch 'main' into jkutner/deps 2023-06-28 09:19:45 -05:00
Joe Kutner 84a6733677
Merge pull request #1809 from dlion/disable-ci-codecov-fail
Disable CI failure if codecov fails due of the flakiness of the upload step
2023-06-28 09:19:27 -05:00
Natalie Arellano d5cc7d9b5f Other small cleanups
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-28 10:03:57 -04:00
Joe Kutner b92ae5e164
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/go-git/go-git/v5-5.7.0' into jkutner/deps 2023-06-28 08:56:45 -05:00
Joe Kutner 698de25d4a
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/docker-24.0.2incompatible' into jkutner/deps 2023-06-28 08:55:12 -05:00
Joe Kutner c85e694cff
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/cli-24.0.2incompatible' into jkutner/deps 2023-06-28 08:52:55 -05:00
Joe Kutner 5f78e0a4c3
Merge remote-tracking branch 'origin/fix/go-version-check' into jkutner/deps 2023-06-28 08:52:36 -05:00
Joe Kutner 2ba7b98be8
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/onsi/gomega-1.27.8' into jkutner/deps 2023-06-28 08:51:03 -05:00
Joe Kutner 005120cedb
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/BurntSushi/toml-1.3.2' into jkutner/deps 2023-06-28 08:50:44 -05:00
Joe Kutner 07319fd4c3
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/dot-github/workflows/actions/release-notes/semver-and-octokit/core--removed' into jkutner/deps 2023-06-28 08:50:22 -05:00
Joe Kutner b955c239b6
Merge branch 'main' into disable-ci-codecov-fail 2023-06-28 08:48:48 -05:00
Joe Kutner e083ca1dd1
Merge pull request #1810 from dlion/1800-fix-dir-permission
If includeRoot by default the permission value is always set to 0777
2023-06-28 08:47:53 -05:00
Natalie Arellano 84ee822612 Try to fix Windows
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 17:28:14 -04:00
Natalie Arellano 03116fe3fc Fix units by not writing parent headers twice
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 13:58:08 -04:00
Natalie Arellano e14d0d90d6 Variable rename and pend tests to see if acceptance is passing
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 13:48:16 -04:00
Natalie Arellano cead5349a1 Update comment
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 13:20:29 -04:00
Natalie Arellano e7c0a12407 Fix more stuff
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 13:17:34 -04:00
Natalie Arellano 6f50a75ab4 Cleanups from PR review
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-27 12:37:38 -04:00
Juan Bustamante 31060e028c
fixing windows issue
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-26 14:38:38 -05:00
Natalie Arellano 8e2a8b3456 Fix test expectation
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-26 15:07:50 -04:00
Natalie Arellano b17287bd05 for -> from
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-26 13:05:36 -04:00
Natalie Arellano 39f29d223e Removing skips on Windows
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-26 12:59:37 -04:00
Domenico Luciani c9ddb30f9c
Adjust the test's title
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-06-26 17:03:54 +02:00
Domenico Luciani 5336779cb5 Fix children and sub-dir permissions inheriting it from the host's system
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-06-26 10:21:52 +02:00
dependabot[bot] e672f5eaf4
build(deps): bump semver and @octokit/core
Removes [semver](https://github.com/npm/node-semver). It's no longer used after updating ancestor dependency [@octokit/core](https://github.com/octokit/core.js). These dependencies need to be updated together.


Removes `semver`

Updates `@octokit/core` from 3.1.0 to 3.6.0
- [Release notes](https://github.com/octokit/core.js/releases)
- [Commits](https://github.com/octokit/core.js/compare/v3.1.0...v3.6.0)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
- dependency-name: "@octokit/core"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 23:34:26 +00:00
Juan Bustamante 144a88f989
adding test case for windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-23 16:14:06 -05:00
Juan Bustamante c3c11ccda6
fixing windows issue
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-23 13:17:15 -05:00
Juan Bustamante 0325a3d0af
attempt to fix windows errors
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-23 12:26:57 -05:00
Domenico Luciani 34fed82b46 Extract some private methods improving the readability
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-06-23 17:37:34 +02:00
Domenico Luciani 4117699634 If includeRoot bydefault the permission value is always set to 0777
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-06-23 16:11:49 +02:00
Juan Bustamante 7b867ad611
trying to fix the path issue on windows on a different way, cleaning all the paths when creating the build modules
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-22 19:07:10 -05:00
Juan Bustamante dceef0d1bf
trying to fix the path issue on windows on a different way, cleaning all the paths when creating the build modules
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-22 19:02:10 -05:00
Juan Bustamante 1adc59e5ab
fixing path errors on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-22 18:33:32 -05:00
Juan Bustamante ff30cd4a89
adding some feedback from review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-22 17:01:00 -05:00
Juan Bustamante 1a47dd7b23
Merge branch 'main' into fix/flatten-tar-extras-2 2023-06-22 14:19:34 -07:00
Juan Bustamante d38479dd01
refactoring the implementation of ToNLayerTar method to use the recursion suggested by Natalie
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-22 15:48:50 -05:00
Juan Bustamante dd0e71529c
Merge branch 'main' into benchmark_alert_user 2023-06-22 07:34:39 -07:00
Domenico Luciani 69267354af Disable CI failure if codecov fails due of the flakiness of the upload step
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
2023-06-22 10:33:35 +02:00
Joe Kutner 21b9a3a05c
Merge pull request #1789 from buildpacks/fix/kaniko-cache
Stack fix & create new volume cache for kaniko instead of re-using build cache
2023-06-21 11:52:26 -05:00
Natalie Arellano 2d62080f77
Merge branch 'main' into fix/kaniko-cache 2023-06-21 12:23:13 -04:00
Joe Kutner 1e2da27c05
Merge pull request #1803 from buildpacks/fix/bom-display
Fix small issue with deprecated BOM display
2023-06-21 11:22:29 -05:00
Joe Kutner 5bfef336ae
Merge branch 'main' into fix/bom-display 2023-06-21 10:47:31 -05:00
Juan Bustamante 1255cc0526
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-21 10:29:37 -05:00
Juan Bustamante 3903d96d43
fixing unit tests assertions
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-21 09:53:15 -05:00
Juan Bustamante 948f7cdcc7
Merge branch 'main' into benchmark_alert_user 2023-06-21 06:33:48 -07:00
Juan Bustamante 39b275e2e1
fixing assertions in flattened buildpack tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-20 17:02:40 -05:00
Juan Bustamante f23c0df603
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-20 11:35:40 -05:00
Joe Kutner 1f35e858e3
Merge pull request #1788 from buildpacks/fix/stack-toml-from-run-table
Fix: deriving stack.toml from the new run image information
2023-06-20 09:24:53 -07:00
Juan Bustamante 12126f300e
Applying review suggestions from Joe Kimmel
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-20 11:11:22 -05:00
Joe Kutner 0635511550
Merge branch 'main' into fix/log-message 2023-06-20 08:58:02 -07:00
Joe Kutner 692e2f1e7e
Merge branch 'main' into fix/stack-toml-from-run-table 2023-06-20 08:55:05 -07:00
Joe Kutner 5a61950135
Merge pull request #1783 from buildpacks/enhancement/flatten-buildpackage-experimental
Flatten buildpack package is move to be experimental
2023-06-20 08:52:07 -07:00
Juan Bustamante 47f76c4407
Fixing weird behavior in the acceptance tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-20 09:09:48 -05:00
Natalie Arellano edc796f1fb Add unit test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-16 13:14:42 -04:00
Natalie Arellano e618ace9f3 Fallback to old behavior of re-using the build cache on older platform api
Without this change, users would be required to upgrade their lifecycle to 0.17.0
when consuming pack 0.30.0 if using build image extension,
as the restorer would fail to write to the /kaniko directory.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-16 13:07:11 -04:00
Juan Bustamante c8e07055bd
removing some structs that were duplicated
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-16 09:06:39 -05:00
Natalie Arellano 57fd8c10ba Fix acceptance
The fixture changed, so its SHA changed

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-15 17:21:47 -04:00
Juan Bustamante 36fcb559ab
fixes
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-15 16:16:42 -05:00
Natalie Arellano c965586df8 Fix extension
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-15 17:08:42 -04:00
Natalie Arellano 3be39f99a9 Fix acceptance
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-15 16:30:31 -04:00
Natalie Arellano 46ba61facd
Merge pull request #1795 from joe-kimmel-vmw/nostacksforyou
only add the stack arg to lifecycle for older platform APIs
2023-06-15 16:29:37 -04:00
Juan Bustamante f938d7e28b
WIP - logging again, it seems we have a concurrency issue
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-15 11:13:55 -05:00
Natalie Arellano c84939bfd7 Fix small issue with deprecated BOM display
Extensions don't output legacy BOMs so including them in the BOM display
is a bit misleading.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-15 12:10:47 -04:00
Juan Bustamante c456691526
buildpack directories not supported on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-15 09:27:13 -05:00
Juan Bustamante f5cce3c00c
skipping --flatten test on previous versions of pack
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-15 08:52:23 -05:00
Juan Bustamante 03808b766d
Implementing logic split flattened modules into different tar files, and
calculate which buildpacks must be added into the ephemeral builder

Skipping pack build -b <flattened-buildpack> in windows container
because acceptance tests doesn't support it yet

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-15 08:31:37 -05:00
Terence Lee a9ce2be91c
use latest version of go minor when building
This should get us go 1.19.10

https://github.com/actions/setup-go#check-latest-version
Signed-off-by: Terence Lee <hone02@gmail.com>
2023-06-14 14:28:51 -07:00
Natalie Arellano 6fe39741af Fix log message when buildpack doesn't satisfy target constraints for builder
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-06-14 14:21:07 -04:00
dependabot[bot] 78c55ac666
build(deps): bump github.com/BurntSushi/toml from 1.2.1 to 1.3.2
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.2.1 to 1.3.2.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.2.1...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-08 22:57:48 +00:00
Joe Kimmel 57b70cd8ab either add -stack or -run flags when invoking lifecycle (with @natalieparellano)
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-06-08 09:29:59 -07:00
Joe Kimmel 7325122315 only add the stack arg to lifecycle for older platform APIs
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-06-07 15:59:55 -07:00
dependabot[bot] 0a29747258
build(deps): bump github.com/onsi/gomega from 1.27.7 to 1.27.8
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.7 to 1.27.8.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.7...v1.27.8)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-07 22:57:18 +00:00
Juan Bustamante a287b8f13e
Merge branch 'main' into benchmark_alert_user 2023-06-07 13:53:51 -07:00
Juan Bustamante 37747efaf1
Fixing unit test after updating the error message
Adding test case for warning message

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-07 14:33:23 -05:00
Juan Bustamante 362052a97f
WIP
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-02 15:08:30 -05:00
Juan Bustamante 735bfc83ef
Avoid writing duplicate tar files for flattened buildpacks
When `pack build --buildpack <flattened buildpack>` is invoked,
`pack` doesn't know the buildpack is flattened, so it treats it like
`pack build --buildpack bp/1 --buildpack bp2`,
resulting in unnecessary tar files being created
and duplicate layers being added to the ephemeral builder,
which can exhaust disk space depending on the environment.

This optimization avoids writing the tar file more than once
by returning a no-op read closer
when the diffID has already been queued for downloading.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-06-02 15:08:30 -05:00
Natalie Arellano 63d15924cd Create new volume cache for kaniko instead of re-using build cache
This removes the unnecessary restriction that the build cache must be a volume cache
in order to use extensions.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-30 17:54:32 -04:00
Natalie Arellano 2e1b3a5234 When deriving stack.toml from the new run image information
2 we should write the file with the correct schema

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-30 17:09:00 -04:00
dependabot[bot] b085e2c178
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 24.0.0+incompatible to 24.0.2+incompatible.
- [Commits](https://github.com/docker/cli/compare/v24.0.0...v24.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 22:57:29 +00:00
dependabot[bot] d9faeda7e3
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.0+incompatible to 24.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.0...v24.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 22:57:23 +00:00
Juan Bustamante d4545c7a58
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-26 08:45:47 -05:00
Juan Bustamante 681c876736
Moving buildpack package --flatten command to be experimental. We still need how it affects the distribution spec
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-25 17:25:22 -05:00
Joe Kutner 52902b093e
Merge pull request #1773 from edithwuly/main
change additional buildpack to java
2023-05-25 15:21:36 -05:00
Joe Kutner 24e4968fa2
Merge branch 'main' into main 2023-05-25 14:55:27 -05:00
edithwuly f0cd56a71b change alert-comment-cc-users to maintainers
Signed-off-by: edithwuly <edithwuly@163.com>
2023-05-24 01:44:38 -07:00
dependabot[bot] 4bb278ed61
build(deps): bump github.com/go-git/go-git/v5 from 5.6.1 to 5.7.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.6.1 to 5.7.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.6.1...v5.7.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 22:57:55 +00:00
Joe Kutner b56634e52e
Merge pull request #1771 from buildpacks/jkutner/deps
Update deps
2023-05-22 10:31:42 -05:00
Joe Kutner 74b6f41e1b
Merge branch 'main' into jkutner/deps 2023-05-22 10:01:37 -05:00
Joe Kutner a78a68a999
replace deprecated type AuthConfig with dockerregistry
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-05-22 10:01:16 -05:00
edithwuly d8498fe8df change additional buildpack to java
Signed-off-by: edithwuly <edithwuly@163.com>
2023-05-21 23:16:41 -07:00
David Freilich 8d55b54f8e
Merge pull request #1562 from SaumyaBhushan/Issue#1561
updated node version for github actions
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-05-20 00:03:04 +03:00
Natalie Arellano 7ec067ad29
Merge branch 'main' into Issue#1561 2023-05-19 16:29:31 -04:00
Joe Kutner ef4cf9e1d0
Fix broken docker.VolumeList signature
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-05-19 14:01:25 -05:00
Joe Kutner dc978b9def
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/google/go-containerregistry-0.15.2' into jkutner/deps 2023-05-19 12:47:38 -05:00
Joe Kutner c83cdaad1e
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/docker-24.0.0incompatible' into jkutner/deps 2023-05-19 12:47:25 -05:00
Joe Kutner 026ae23523
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/cli-24.0.0incompatible' into jkutner/deps 2023-05-19 12:44:58 -05:00
Joe Kutner 26e5839120
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/onsi/gomega-1.27.7' into jkutner/deps 2023-05-19 12:44:43 -05:00
Joe Kutner aded3164af
Merge pull request #1757 from itsdarshankumar/extension-downloader
Add support for extensions in pack Buildpack downloader
2023-05-19 11:20:59 -05:00
Natalie Arellano 86e4b7fc42
Merge branch 'main' into Issue#1561 2023-05-19 12:04:54 -04:00
Joe Kutner de9c1131f3
Merge branch 'main' into extension-downloader 2023-05-19 10:45:41 -05:00
dependabot[bot] 73bbc6cc53
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.15.1...v0.15.2)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 23:00:47 +00:00
dependabot[bot] 848fb635d7
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.6+incompatible to 24.0.0+incompatible.
- [Commits](https://github.com/docker/cli/compare/v23.0.6...v24.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 23:00:39 +00:00
dependabot[bot] 201ff21f3e
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.6+incompatible to 24.0.0+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.6...v24.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 23:00:24 +00:00
dependabot[bot] 55c43effcd
build(deps): bump github.com/onsi/gomega from 1.27.6 to 1.27.7
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.6 to 1.27.7.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.6...v1.27.7)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 22:58:16 +00:00
Joe Kutner 1aa6461e65
Merge pull request #1730 from buildpacks/jkutner/dep-updates
Upgrade default lifecycle to 0.17.0-pre.2
2023-05-18 17:57:52 -05:00
Darshan Kumar 1575e82826
replace id of the packaged test extension to resolve path for reading tar in test
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-05-19 04:25:48 +05:30
Darshan Kumar f40f430f4f
Merge branch 'main' into extension-downloader 2023-05-19 04:09:22 +05:30
Darshan Kumar ce5e87388a
add tests for extractBuildpacks
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-05-19 04:08:07 +05:30
Natalie Arellano 1b1a786b93 Bump lifecycle binary to pre.2
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-18 15:22:24 -04:00
Natalie Arellano e03555c06c Fix lint
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-18 14:36:07 -04:00
Natalie Arellano cb4d052299 Merge branch 'main' into jkutner/dep-updates 2023-05-18 12:07:59 -04:00
Natalie Arellano 4a10b106a8
Merge pull request #1767 from joe-kimmel-vmw/jk/dep-ups-for-lifecycle-pre2
upgrades to the latest lifecycle pre-release
2023-05-18 11:12:44 -04:00
Joe Kimmel 71649e02d0 upgrades to the latest lifecycle pre-release
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-05-17 15:44:45 -07:00
Joe Kutner c05a1ecd9d
Merge pull request #1762 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.9.0
build(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0
2023-05-15 13:32:00 -05:00
Joe Kutner 6eb9047270
Merge branch 'main' into dependabot/go_modules/golang.org/x/crypto-0.9.0 2023-05-15 13:04:10 -05:00
Joe Kutner 987f4be996
Merge pull request #1691 from buildpacks/enhancement/issue-1595-layer-compression-flattening
Add ` --flatten`, `--depth` and `flatten-exclude` flags to `pack builder create` and `pack buildpack package` command
2023-05-13 14:10:12 -05:00
Darshan Kumar 1f69ed4b00
Merge branch 'main' into extension-downloader 2023-05-13 21:07:28 +05:30
dependabot[bot] 0c16e2de44
build(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/crypto/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-12 22:57:40 +00:00
Juan Bustamante ab6837c6a4
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-05-12 08:06:31 -07:00
Joe Kutner ec92a23eca
Merge pull request #1758 from buildpacks/jkutner/deps
dependency updates
2023-05-12 08:45:23 -05:00
Joe Kutner 28c8837e0b
Merge branch 'main' into jkutner/deps 2023-05-11 23:16:34 -05:00
Joe Kutner 53be380771
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible' into jkutner/deps 2023-05-11 23:11:44 -05:00
Joe Kutner b2dc855ee0
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/cloudflare/circl-1.3.3' into jkutner/deps 2023-05-11 23:10:55 -05:00
Joe Kutner 881dd55d59
Merge pull request #1735 from quantumsheep/patch-1
Wait for non-running state to prevent concurrency
2023-05-11 23:10:20 -05:00
Natalie Arellano abce18872e Further acceptance test fixes
Skip stack validation when not supported

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-11 17:56:30 -04:00
dependabot[bot] e4cd33045e
build(deps): bump github.com/docker/distribution
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](https://github.com/docker/distribution/compare/v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: github.com/docker/distribution
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 20:47:02 +00:00
dependabot[bot] 35ffc44680
build(deps): bump github.com/cloudflare/circl from 1.1.0 to 1.3.3
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.1.0 to 1.3.3.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.1.0...v1.3.3)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 20:45:08 +00:00
Darshan Kumar a31c35b7d6
adds support for extensions in OCILayoutPackage
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-05-11 23:41:47 +05:30
Natalie Arellano 815bb50ce2 Update field name for run image mirrors
It is nested under `[run]` so `run-image` is redundant

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-11 12:46:01 -04:00
Joe Kutner 16404fe33a
make format
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-05-11 09:03:44 -05:00
Joe Kutner 312b265dd4
Merge remote-tracking branch 'joe-kimmel-vmw/go120' into jkutner/deps 2023-05-11 09:02:01 -05:00
Joe Kimmel 40607950c7 removes all calls to rand.Seed
All of our calls to Seed were with current time, so they
were intended to produce different pseudo-random sequences on each run.
We were never calling Seed with a fixed value to create reproducible
sequences of pseudo-random numbers.  Therefore it should be safe to just
delete the calls.

per the docs (https://pkg.go.dev/math/rand@master#Seed):

> If Seed is not called, the generator is seeded randomly at program startup.

> Prior to Go 1.20, the generator was seeded like Seed(1) at program startup. To force the old behavior, call Seed(1) at program startup. Alternately, set GODEBUG=randautoseed=0 in the environment before making any calls to functions in this package.

> Deprecated: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator.

Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-05-10 16:24:05 -07:00
Joe Kimmel deeb70013d updates makefile and github actions to 1.20 also
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-05-10 15:23:41 -07:00
Joe Kutner 48f25f1057
Upgrade to golang 1.20
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-05-10 14:27:37 -05:00
Joe Kutner e75420977a
Merge remote-tracking branch 'joe-kimmel-vmw/go120' into jkutner/deps 2023-05-10 14:25:34 -05:00
Joe Kutner f98ba0b8c2
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/sync-0.2.0' into jkutner/deps 2023-05-10 14:25:01 -05:00
Joe Kutner 5dc821b38a
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/google/go-containerregistry-0.15.1' into jkutner/deps 2023-05-10 14:21:54 -05:00
Joe Kutner 386e5b90d3
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/docker-23.0.6incompatible' into jkutner/deps 2023-05-10 14:21:29 -05:00
Joe Kutner 5b77c1caa0
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/docker/cli-23.0.6incompatible' into jkutner/deps 2023-05-10 14:20:15 -05:00
Juan Bustamante e5462b50c5
adding some TODO to improve test coverage in the future
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-10 09:55:09 -05:00
Darshan Kumar 20d94a2483
adds function for extracting extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-05-10 20:16:39 +05:30
dependabot[bot] e63f5db901
build(deps): bump golang.org/x/oauth2 from 0.7.0 to 0.8.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 22:57:14 +00:00
Natalie Arellano b4b0f1ce25 Pull the run image after the build phase if changed by extensions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-09 16:47:26 -04:00
Juan Bustamante 25374bcf02
Adding feedback from peer review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-09 15:04:13 -05:00
Natalie Arellano 9e1d16334c Merge branch 'main' into jkutner/dep-updates 2023-05-09 13:49:33 -04:00
Juan Bustamante 2f00d5d8bf
Adding suggestions from peer review
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-09 11:20:11 -05:00
dependabot[bot] ba2d28d4ea
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.5+incompatible to 23.0.6+incompatible.
- [Commits](https://github.com/docker/cli/compare/v23.0.5...v23.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 22:57:40 +00:00
dependabot[bot] e265c31188
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.5+incompatible to 23.0.6+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.5...v23.0.6)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 22:57:29 +00:00
Juan Bustamante 31c72db79d
Renaming #MustBeFlatten to #ShouldFlatten
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-08 17:02:02 -05:00
Juan Bustamante 1f64410fbc
Removing AddExtensions method because they can't be composited
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-08 16:58:58 -05:00
Juan Bustamante 10d356002d
renaming method IsFlatten to ShouldFlatten
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-08 16:24:06 -05:00
Juan Bustamante aaad51c787
Fixing unit testing after error messages was updated
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-08 15:29:12 -05:00
Juan Bustamante 99e19aaaf4
Apply suggestions from code review
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-08 15:16:05 -05:00
Natalie Arellano 7db3c0bc98 Skip stack validation acceptance test on newer platform APIs
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-08 14:37:28 -04:00
dependabot[bot] c1f51e5e56
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.14.0 to 0.15.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.14.0...v0.15.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 22:57:21 +00:00
dependabot[bot] 98948793f1
build(deps): bump golang.org/x/sync from 0.1.0 to 0.2.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.2.0.
- [Commits](https://github.com/golang/sync/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 22:57:15 +00:00
Juan Bustamante 93264a5d01
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-05-05 11:56:20 -07:00
Natalie Arellano 74c3a8005c Don't validate mixins on newer platforms
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-05 12:34:52 -04:00
Nathanael Demacon ef5dbaad13
Merge branch 'main' into patch-1 2023-05-05 18:01:01 +02:00
Joe Kutner 8bd4c4902b
Merge pull request #1749 from buildpacks/jkutner/deps
Various dependency updates
2023-05-05 09:46:39 -05:00
Natalie Arellano dee7a7e972
Merge pull request #1744 from joe-kimmel-vmw/jkutner/dep-updates
inspect image: add one unit test
2023-05-05 10:11:30 -04:00
Natalie Arellano 0ca73181c2
Update pkg/client/inspect_image_test.go
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-05-05 10:11:23 -04:00
Joe Kutner 1a057622df
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/term-0.8.0' into jkutner/deps 2023-05-05 07:58:59 -05:00
Joe Kutner c0e564837b
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/sync-0.2.0' into jkutner/deps 2023-05-05 07:57:25 -05:00
Joe Kutner 08fbc3cd2e
Merge remote-tracking branch 'joe-kimmel-vmw/deps' into jkutner/deps 2023-05-05 07:56:48 -05:00
Juan Bustamante eb1dc676a3
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-05-05 05:22:31 -07:00
Nathanael DEMACON 37158bb223
handle docker <1.30 and 1.30+ container wait
Signed-off-by: Nathanael DEMACON <ndemacon@scaleway.com>
2023-05-05 11:52:33 +02:00
Nathanael Demacon 64f069e05e
Wait for non-running state to prevent concurrency
Signed-off-by: Nathanael Demacon <nathanael.dmc@outlook.fr>
Signed-off-by: Nathanael DEMACON <ndemacon@scaleway.com>
2023-05-05 11:52:32 +02:00
dependabot[bot] d05798da93
build(deps): bump golang.org/x/term from 0.7.0 to 0.8.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/term/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 22:58:08 +00:00
dependabot[bot] 260f6f113e
build(deps): bump golang.org/x/sync from 0.1.0 to 0.2.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.2.0.
- [Commits](https://github.com/golang/sync/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 22:57:56 +00:00
David Freilich 6cdc9d29d7
Merge branch 'main' into go120 2023-05-04 21:45:03 +03:00
David Freilich 5667b07d01
Merge pull request #1738 from buildpacks/dependabot/go_modules/github.com/docker/cli-23.0.5incompatible
build(deps): bump github.com/docker/cli from 23.0.4+incompatible to 23.0.5+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-05-04 21:35:29 +03:00
Juan Bustamante 9716a3e0b8
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-05-04 10:29:12 -07:00
dependabot[bot] 28de8c93bd
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.4+incompatible to 23.0.5+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.4...v23.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 16:17:16 +00:00
David Freilich a551896ca4
Merge pull request #1739 from buildpacks/dependabot/go_modules/github.com/docker/docker-23.0.5incompatible
build(deps): bump github.com/docker/docker from 23.0.4+incompatible to 23.0.5+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-05-04 19:14:36 +03:00
dependabot[bot] 11cd725bfc
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.4+incompatible to 23.0.5+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.4...v23.0.5)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 14:05:48 +00:00
David Freilich 639d2a8438
Merge pull request #1741 from inspirit941/fix-1709
Extract internal/cache package to public
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-05-04 15:33:50 +03:00
David Freilich b2168df62c
Merge branch 'main' into fix-1709 2023-05-04 14:56:03 +03:00
David Freilich e325cc5a65
Merge pull request #1745 from dmikusa/paketo-jammy
Update Paketo stack & builder references to Jammy
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-05-04 14:45:29 +03:00
Juan Bustamante a543a2e0ea
adding more test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-03 18:10:40 -05:00
Juan Bustamante 3431e8bbd2
Adding more test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-03 17:09:27 -05:00
Juan Bustamante f6fa0148ce
adding test coverage when flattening buildpacks
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-03 15:27:01 -05:00
Juan Bustamante 93ce5062f3
fixing skipping on windows statement
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-03 11:10:41 -05:00
Juan Bustamante cdcfbfe3a5
removig logging
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-02 21:00:31 -05:00
Daniel Mikusa efbc2b85f7
Update Paketo stack & builder references to Jammy
The Paketo Bionic stack is going away at the end of May (it will be out of support upstream then). This PR replaces all references to the Bionic stack with the new Jammy stack.

In addition, it adds references for the new static stack & builder. The static stack is even smaller than the tiny stack and is suitable for completely static binaries like those you can build with Go or Rust.

Signed-off-by: Daniel Mikusa <dan@mikusa.com>
2023-05-02 21:04:09 -04:00
Juan Bustamante a85f21fcdd
skipping tests on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-02 19:54:27 -05:00
Juan Bustamante dcf0b5e7e3
adding test covergate for buildpack tar writer
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-05-02 18:48:38 -05:00
Joe Kimmel a8da1c4a45 inspect image: add one unit test
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-05-01 15:43:09 -07:00
Donggeon Lee e396427916
Merge branch 'main' into fix-1709 2023-04-30 16:12:27 +09:00
Juan Bustamante c24c597ac2
removing unused attributes
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-28 19:08:19 -05:00
Juan Bustamante 64f99e808c
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-04-28 16:04:52 -07:00
Juan Bustamante 4d3889e082
fixing liting error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-28 17:26:17 -05:00
Juan Bustamante c60fc5151b
refactoring the logic to write the buildpack to a tar
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-28 16:57:09 -05:00
Natalie Arellano 8e03c74962
Merge pull request #1743 from joe-kimmel-vmw/jkutner/dep-updates
add one Rebase unit test and fix nil handling
2023-04-28 15:42:06 -04:00
Joe Kimmel 6b17d90675 add one Rebase unit test and fix nil handling
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-28 12:40:52 -07:00
Natalie Arellano 85da68a95f WIP
Signed-off-by: Joe Kimmel <joe-kimmel-vmw@vmware.com>
2023-04-28 14:47:28 -04:00
Joe Kimmel 9d51920616 Fix acceptance tests for current-current-current with newer lifecycle
This will fail in CI until there is a lifecycle-0.17.0-pre.2

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-27 14:48:11 -04:00
Joe Kutner 12bc0e2418
Merge pull request #1736 from edithwuly/main
Create benchmark.yml and add end-to-end benchmark
2023-04-27 12:06:16 -05:00
Joe Kutner b51249630d
Merge branch 'main' into main 2023-04-27 11:41:17 -05:00
Joe Kutner 5e5a437125
Merge pull request #1734 from cuishuang/main
fix some comments
2023-04-27 09:42:16 -05:00
edithwuly 144ad8e859 add setEnv()
Signed-off-by: edithwuly <edithwuly@163.com>
2023-04-27 14:55:05 +08:00
edithwuly 14d541ae56 Update benchmark.yml
Signed-off-by: edithwuly <edithwuly@163.com>
2023-04-27 14:31:13 +08:00
edithwuly 504b84ec76 Update build_test.go
Signed-off-by: edithwuly <edithwuly@163.com>
2023-04-27 14:31:13 +08:00
edithwuly b5cdb8b068 add e2e benchmark for --buildpack
Signed-off-by: edithwuly <edithwuly@163.com>
2023-04-27 14:31:13 +08:00
edithwuly b0dcf85fbb Create benchmark.yml
Signed-off-by: edithwuly <edithwuly@163.com>
2023-04-27 14:31:01 +08:00
inspirit941 0c6e7acff4 chore
Signed-off-by: inspirit941 <inspirit941@gmail.com>
2023-04-27 10:23:09 +09:00
inspirit941 891ad6457e fix: refactor internal/cache pkg to pkg/cache
Signed-off-by: inspirit941 <inspirit941@gmail.com>
2023-04-27 10:23:09 +09:00
Juan Bustamante 0e38554dea
adding more test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 18:15:59 -05:00
Joe Kimmel c3fcf9ddeb go 1.20
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-26 16:09:00 -07:00
Juan Bustamante 63710460de
Fixing false positive on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 17:31:06 -05:00
Juan Bustamante 5e5eb0863a
adding test coverage for pack builder create with flatten option
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 16:56:03 -05:00
Juan Bustamante 6516e106c9
fixing Error processing tar file(duplicates of file paths not supported) without breaking tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 14:40:02 -05:00
Juan Bustamante a334949437
fixing Error processing tar file(duplicates of file paths not supported)
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 12:11:34 -05:00
Juan Bustamante bbd736d0c7
Fixing, ERROR: saving image: no compatible stacks among provided buildpacks
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-26 08:49:04 -05:00
Joe Kimmel b8a25e4202 updating deps after running go work sync so lifecycle and pack match
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-25 12:05:09 -07:00
Juan Bustamante e666779848
removing unnecesary file
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-25 13:30:32 -05:00
Juan Bustamante ae49ed37cc
adding test coverage for module manager
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-25 11:11:59 -05:00
cui fliter 31224ea1ca fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-25 15:01:07 +08:00
Juan Bustamante 3ccd9dd79e
adding flatten module test
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-24 18:42:06 -05:00
Juan Bustamante 9b1656645b
removing unnecessary trailing newline (whitespace)
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-24 17:07:56 -05:00
Juan Bustamante 2fad1f8f6d
Adding module manager test coverage for not flatten modules
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-24 15:35:51 -05:00
Juan Bustamante d17e6bacfd
WIP - adding empty test file for module manager
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-24 07:33:29 -05:00
Juan Bustamante 9f4d3b2aad
Adding test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-20 17:52:01 -05:00
Juan Bustamante 61e4f47443
Fixing some typo and lint errors
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-20 16:45:40 -05:00
Juan Bustamante d65ea4585c
fixing the error with pack builder --flatten all
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-20 15:39:50 -05:00
Juan Bustamante 9a838129b2
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-04-20 13:39:31 -07:00
Juan Bustamante fd8dea3fab
refactoring the package builder create, adding --flatten and --depth flags, flatten all is still not working
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-19 18:34:13 -05:00
Juan Bustamante 88d6319109
refactoring the pack buildpack package command to include --depth flag
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-19 18:34:13 -05:00
Joe Kutner fd0478c007
Update regex in asset_manager for lifecycle pre.1
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-19 08:10:31 -05:00
Joe Kutner 58da8e79c4
Update report_output for new lifecycle
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-18 16:56:21 -05:00
Joe Kutner fa0d9ff2e6
Merge branch 'main' into jkutner/dep-updates 2023-04-18 16:31:11 -05:00
Joe Kutner b72673362b
Upgrade default lifecycle to 0.17.0-pre.1
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-18 15:58:34 -05:00
Joe Kutner 1190b6c521
Merge pull request #1729 from buildpacks/jkutner/dep-updates
Update deps: lifecycle v0.17.0-pre.1
2023-04-18 14:10:58 -05:00
Joe Kutner 0232c1f924
Update lifecycle to v0.17.0-pre.1
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-18 12:49:36 -05:00
dependabot[bot] 0869b661a2
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.3+incompatible to 23.0.4+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.3...v23.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 12:48:22 -05:00
dependabot[bot] 83884ceaf1
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.3+incompatible to 23.0.4+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.3...v23.0.4)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 22:57:45 +00:00
Joe Kutner b930255dad
Merge pull request #1725 from buildpacks/dependabot/go_modules/github.com/Microsoft/go-winio-0.6.1
build(deps): bump github.com/Microsoft/go-winio from 0.6.0 to 0.6.1
2023-04-15 11:32:01 -05:00
Joe Kutner b2036c8599
Merge branch 'main' into dependabot/go_modules/github.com/Microsoft/go-winio-0.6.1 2023-04-15 10:58:09 -05:00
Joe Kutner 4ac7a78d3e
Merge pull request #1724 from buildpacks/add-experimental
Enable experimental in exporter if we are using extensions
2023-04-15 10:57:44 -05:00
dependabot[bot] 15da331f7d
build(deps): bump github.com/Microsoft/go-winio from 0.6.0 to 0.6.1
Bumps [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/go-winio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 22:57:45 +00:00
Juan Bustamante bb07cdbe6b
Merge branch 'main' into enhancement/issue-1595-layer-compression-flattening 2023-04-14 15:37:25 -07:00
Natalie Arellano 9e2a6e045a Enable experimental in exporter if we are using extensions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-14 14:48:19 -04:00
Joe Kutner afff088969
Merge pull request #1723 from buildpacks/jkutner/x-text
Upgrade golang.org/x/text in tools
2023-04-14 11:28:41 -05:00
Joe Kutner fb5d07466e
Updating linter which requires fixing lint failures
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-14 09:52:12 -05:00
Juan Bustamante bef7256eee
WIP - fixing test error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:39:02 -05:00
Juan Bustamante 3368d87433
WIP - refactoring the code avoid touching several places
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:38:52 -05:00
Juan Bustamante 62d8f901b9
WIP - removing blank line
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:51 -05:00
Juan Bustamante 04db8ee6e9
WIP - fixing compilation error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante f9116e4972
WIP - fixing formatting issue
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante 359fbce027
WIP - adding logger
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante ce6041e14f
WIP - adding --flatten-all flag to buildpackage create command
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante 199925ca5c
WIP - refactoring the code a reasanoble location and adding some test
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante 90b2b152e7
Fixing lint errors
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:50 -05:00
Juan Bustamante 24e4efed00
removing not required kind validation
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:49 -05:00
Juan Bustamante 9d5afc07c2
WIP - initial version, the feature works with the samples repo
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-04-14 09:34:33 -05:00
Joe Kutner f590cdd5e9
Upgrade golang.org/x/text in tools
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-13 20:29:10 -05:00
Joe Kutner 2e1320b993
Merge pull request #1698 from buildpacks/runext/pack-build-1620
Pack should support run image extension on Platform API 0.12
2023-04-13 16:28:00 -05:00
Natalie Arellano 92d0380da3 Merge branch 'main' into runext/pack-build-1620 2023-04-13 14:53:01 -04:00
Natalie Arellano 15e52db093 Make tmpDir private by passing it into the constructor
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-13 14:51:03 -04:00
Natalie Arellano e8c869a7c4 Provide -run to exporter for newer platforms
Also test that -stack is provided for older platforms

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-13 14:42:09 -04:00
Natalie Arellano 24ce465917 Rename func and clarify comment
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-13 14:29:48 -04:00
Joe Kutner d6aedda62a
Added a test for build.CopyOutErr
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-13 09:52:06 -05:00
Joe Kutner 28d211d43f
Merge pull request #1706 from joe-kimmel-vmw/stackrecommenddepwarning
adds deprecation warnings to pack stack comands
2023-04-13 08:03:15 -05:00
Joe Kutner 750d80f0ce
Merge branch 'main' into stackrecommenddepwarning 2023-04-13 07:40:02 -05:00
Joe Kimmel 8a17a3bc06 tweak to deprecation notice wording
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-12 17:28:48 -07:00
Joe Kutner 8cd3ce705d
Merge pull request #1713 from buildpacks/jkutner/validate-bp-targets
Add EnsureTargetSupport to BuildpackDescriptor
2023-04-12 17:28:34 -05:00
Joe Kutner 1b52878ffd
default stack.toml to use first run image
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-12 13:58:32 -05:00
Joe Kutner fe1db21a5e
Omit empty stack from builder inspect
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-12 12:29:46 -05:00
Joe Kutner 9dc7cba8e6
rework buildpack_test to improve coverage
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner c819036fa4
Ensure test coverage of DefaultRunImage even though it's run by build tests
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner 013475f124
Add runImages support to builder inspect
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner ca28903a41
Add test coverage for default targets
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner c36b3a5183
Enable buildpack targets for build
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner 177d7184ee
Add targets when creating buildpackpage
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner 5eeceffa27
Comments and formatting
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:04 -05:00
Joe Kutner d5976b4dc7
Detect if buildpack as bin/build, bin/build.exe, or bin/build.bat
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:03 -05:00
Joe Kutner ee8e85bbf9
Add tests for EnsureTargetSupport
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:03 -05:00
Joe Kutner 8cce5a4f12
Add EnsureTargetSupport to BuildpackDescriptor
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-11 16:03:03 -05:00
Joe Kutner 18dcd82175
Merge pull request #1710 from itsdarshankumar/inspect-builder
show extensions only if they are present for all output format in inspect builder
2023-04-11 09:44:33 -05:00
Joe Kimmel 13a0b02312 adds unit test for deprecated command to pacify codecov
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-10 17:25:55 -07:00
Darshan Kumar 9f6b412e52
acceptance testdata for no output in case of no extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-04-11 05:02:53 +05:30
Joe Kimmel 774a0dc7ac fix test output for new deprecation warning
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-10 16:15:55 -07:00
Joe Kimmel 3ee8b470b2 adds deprecation warnings to pack stack comands
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-10 16:15:55 -07:00
Darshan Kumar e4d833d345
modify test for no output of extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-04-11 04:12:32 +05:30
Darshan Kumar 8b1d92e7ea
Merge branch 'main' into inspect-builder 2023-04-11 02:50:45 +05:30
Darshan Kumar 38c4d5b67a
refactor builderInfo output code
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-04-11 02:48:42 +05:30
Darshan Kumar 3d8681b96a
fix for other output in builder inspect
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-04-11 02:22:53 +05:30
Joe Kutner 8a8b544f77
Merge pull request #1716 from buildpacks/dependabot/go_modules/golang.org/x/oauth2-0.7.0
build(deps): bump golang.org/x/oauth2 from 0.6.0 to 0.7.0
2023-04-10 15:22:04 -05:00
dependabot[bot] d284efee40
build(deps): bump golang.org/x/oauth2 from 0.6.0 to 0.7.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 18:05:57 +00:00
Joe Kutner 107bde1693
Merge pull request #1715 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.8.0
build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0
2023-04-10 12:59:52 -05:00
Joe Kutner b1eda98257
Merge branch 'main' into dependabot/go_modules/golang.org/x/crypto-0.8.0 2023-04-10 11:51:58 -05:00
Joe Kutner 81ef9c2033
Merge pull request #1714 from joe-kimmel-vmw/terminate_the_deprecated
remove deprecated suggest-stacks command
2023-04-10 11:49:51 -05:00
dependabot[bot] b97f0f23b4
build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07 22:57:13 +00:00
Natalie Arellano 98bd954540 Update sha for WCOW extension
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-07 18:03:12 -04:00
Natalie Arellano d83204c152 Try to fix Windows cleanup
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-07 16:26:01 -04:00
Natalie Arellano b85bb08bab Merge branch 'main' into runext/pack-build-1620 2023-04-07 15:36:07 -04:00
Natalie Arellano 0861bc7f08 Fixes and acceptance test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-07 15:35:39 -04:00
Joe Kimmel 45dfc763f7 remove deprecated suggest-stacks command
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-07 12:16:09 -07:00
Joe Kutner cc9993c989
Merge pull request #1651 from edithwuly/main
pack build support --extension
2023-04-07 07:43:38 -05:00
wlywly 48ed612c56 nit
Signed-off-by: wlywly <edithwuly@163.com>
2023-04-07 14:48:58 +08:00
wlywly 6bb8cb0889 remove handler for buildpack.FromBuilderLocator of extension
Signed-off-by: wlywly <edithwuly@163.com>
2023-04-07 14:45:55 +08:00
edithwuly 5e8633a276
Merge branch 'main' into main
Signed-off-by: edithwuly <33151775+edithwuly@users.noreply.github.com>
2023-04-07 14:27:03 +08:00
edithwuly 909c5020bf
Update pkg/client/build.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: edithwuly <33151775+edithwuly@users.noreply.github.com>
2023-04-07 14:21:40 +08:00
edithwuly aee4dba6eb
Update pkg/client/build.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: edithwuly <33151775+edithwuly@users.noreply.github.com>
2023-04-07 14:21:24 +08:00
edithwuly 8bb1a2b602
Update pkg/client/build.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: edithwuly <33151775+edithwuly@users.noreply.github.com>
2023-04-07 14:20:07 +08:00
edithwuly 4affdc41a8
Update internal/commands/build.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: edithwuly <33151775+edithwuly@users.noreply.github.com>
2023-04-07 14:19:53 +08:00
Joe Kutner 454c3883e8
Merge pull request #1711 from buildpacks/dependabot/go_modules/golang.org/x/text-0.9.0
build(deps): bump golang.org/x/text from 0.8.0 to 0.9.0
2023-04-06 20:11:17 -05:00
dependabot[bot] 5cad9eff44
build(deps): bump golang.org/x/text from 0.8.0 to 0.9.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 22:58:27 +00:00
Darshan Kumar d87b4ca074
show extensions only if they are present for humanreadable format
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-04-07 01:34:06 +05:30
Joe Kutner cdb7a0da43
Merge pull request #1704 from buildpacks/dependabot/go_modules/github.com/docker/docker-23.0.3incompatible
build(deps): bump github.com/docker/docker from 23.0.2+incompatible to 23.0.3+incompatible
2023-04-06 14:13:22 -05:00
dependabot[bot] 1733107b77
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.2+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.2...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 18:46:20 +00:00
Joe Kutner c07bb33636
Merge pull request #1700 from joe-kimmel-vmw/force-flag-operation
adds rebase force override passthru flag
2023-04-06 13:44:56 -05:00
Joe Kimmel 92bdca4d17 finish fixing lifecycle apis
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-06 10:46:17 -07:00
Joe Kimmel 2d3465651c adds rebase force override passthru flag
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-04-06 10:46:14 -07:00
Natalie Arellano 1ba83674fd Don't require file to exist in container for copy operation to complete successfully
<layers>/generated/build isn't guaranteed to exist

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-06 12:00:47 -04:00
Natalie Arellano d9b7132f1a Merge branch 'main' into runext/pack-build-1620 2023-04-06 10:27:15 -04:00
Natalie Arellano e8d47ae7de Lifecycle execution tests should not require Docker
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-06 10:24:57 -04:00
Natalie Arellano 88638096ec Rename field to avoid confusion with the lifecycle binary's working directory
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-06 10:18:03 -04:00
Natalie Arellano 5ae6791733 Fix container name
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-06 10:13:56 -04:00
Joe Kutner 984b39ca77
Merge pull request #1708 from buildpacks/dependabot/go_modules/golang.org/x/term-0.7.0
build(deps): bump golang.org/x/term from 0.6.0 to 0.7.0
2023-04-06 09:12:25 -05:00
Natalie Arellano 46578c15ef Look for build Dockerfiles in the right directory
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-06 09:47:21 -04:00
dependabot[bot] 6c0190fce6
build(deps): bump golang.org/x/term from 0.6.0 to 0.7.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/term/releases)
- [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 02:35:59 +00:00
Joe Kutner 9e4cc42a4a
Merge pull request #1702 from buildpacks/dependabot/go_modules/golang.org/x/mod-0.10.0
build(deps): bump golang.org/x/mod from 0.9.0 to 0.10.0
2023-04-05 21:34:34 -05:00
dependabot[bot] fc6a0cd0b3
build(deps): bump golang.org/x/mod from 0.9.0 to 0.10.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 01:37:47 +00:00
Joe Kutner e11787b32a
Merge pull request #1707 from buildpacks/dependabot/go_modules/github.com/docker/cli-23.0.3incompatible
build(deps): bump github.com/docker/cli from 23.0.2+incompatible to 23.0.3+incompatible
2023-04-05 20:36:22 -05:00
dependabot[bot] ae20bc876c
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.2+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.2...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 22:57:33 +00:00
Natalie Arellano cbd7dd1c06 Restorer should provided /kaniko bind when there are run image extensions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-05 18:40:54 -04:00
Natalie Arellano ea4b3a5bf6 When deciding whether to run the extender (for run image), look in <layers>/analyzed.toml and check if extend is true.
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-05 18:30:02 -04:00
Natalie Arellano 791ae2fc09 When deciding whether to pull the builder manifest or run the extender,
look in <layers>/generated/build for Dockerfiles
instead of looking in the order.

Extensions could have been present in the order, but not detected.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-05 18:13:01 -04:00
Natalie Arellano 99c0cbc8a4 Add extend for run
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-04-05 16:51:39 -04:00
Joe Kutner b855136daa
Merge pull request #1703 from buildpacks/dependabot/go_modules/github.com/spf13/cobra-1.7.0
build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0
2023-04-05 09:03:41 -05:00
Joe Kutner 462030d995
Merge branch 'main' into dependabot/go_modules/github.com/spf13/cobra-1.7.0 2023-04-05 08:36:02 -05:00
Joe Kutner 953ae77c28
Merge pull request #1701 from nadworny/feature/fix_azure_devops
feat: add registry cache support for Azure DevOps
2023-04-05 08:35:17 -05:00
nadworny 444b040696
Merge branch 'main' into feature/fix_azure_devops 2023-04-05 09:22:13 +02:00
dependabot[bot] 09bc9144e3
build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 22:12:06 +00:00
Joe Kutner 8156fe6bc3
Merge pull request #1693 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.16.1
build(deps): bump github.com/buildpacks/lifecycle from 0.16.0 to 0.16.1
2023-04-04 15:19:54 -05:00
nadworny 98156e99f6 fix: more expressive error
Co-authored-by: Joe Kutner <jpkutner@gmail.com>
Signed-off-by: nadworny <bartosz.nadworny@gmail.com>
Signed-off-by: Bartosz Nadworny <bartosz.nadworny@zurich.ch>
2023-04-04 19:01:32 +02:00
Bartosz Nadworny d51c8a0180 fix: failing test
Signed-off-by: Bartosz Nadworny <bartosz.nadworny@zurich.ch>
2023-04-04 19:01:32 +02:00
Bartosz Nadworny c5abc60980 feat: add registry cache support for Azure DevOps
Signed-off-by: Bartosz Nadworny <bartosz.nadworny@zurich.ch>
2023-04-04 19:01:32 +02:00
dependabot[bot] 3e2e21d646
build(deps): bump github.com/buildpacks/lifecycle from 0.16.0 to 0.16.1
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.16.0...v0.16.1)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 15:20:58 +00:00
Joe Kutner b4eebadfd0
Merge pull request #1697 from buildpacks/dependabot/go_modules/github.com/opencontainers/runc-1.1.5
build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5
2023-04-03 22:24:22 -05:00
Joe Kutner 29a4cefee3
Merge branch 'main' into dependabot/go_modules/github.com/opencontainers/runc-1.1.5 2023-04-03 21:55:16 -05:00
Joe Kutner 73f0cbe41c
Merge pull request #1699 from buildpacks/dependabot/go_modules/github.com/docker/docker-23.0.2incompatible
build(deps): bump github.com/docker/docker from 23.0.1+incompatible to 23.0.2+incompatible
2023-04-03 21:54:52 -05:00
dependabot[bot] 407a2ac3f4
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.1+incompatible to 23.0.2+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.1...v23.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-03 22:59:34 +00:00
dependabot[bot] eabdb65993
build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.4...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-03 20:12:05 +00:00
Joe Kutner cc89c791ea
Merge pull request #1689 from buildpacks/dependabot/go_modules/github.com/docker/cli-23.0.2incompatible
build(deps): bump github.com/docker/cli from 23.0.1+incompatible to 23.0.2+incompatible
2023-04-03 15:08:35 -05:00
dependabot[bot] 298bfb35f5
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.1+incompatible to 23.0.2+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.1...v23.0.2)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-03 19:31:19 +00:00
Joe Kutner ef79260255
Merge pull request #1696 from buildpacks/jkutner/upgrade-docker2
Remove replacments for docker and buildkit
2023-04-03 14:29:58 -05:00
Joe Kutner 07bffbbbe8
Remove replacments for docker and buildkit
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-04-02 20:29:17 -05:00
Joe Kutner cf02f03cb2
Merge pull request #1694 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.27.6
build(deps): bump github.com/onsi/gomega from 1.27.5 to 1.27.6
2023-03-31 13:05:20 -05:00
Joe Kutner 01bdca892a
Merge branch 'main' into dependabot/go_modules/github.com/onsi/gomega-1.27.6 2023-03-31 12:39:42 -05:00
Joe Kutner 0f1a25759a
Merge pull request #1692 from chetanguptaa/some-fixes
Some fixes
2023-03-31 12:02:18 -05:00
Joe Kutner 20b9e5f542
Merge branch 'main' into some-fixes 2023-03-31 11:20:33 -05:00
Joe Kutner 52127f7306
Merge pull request #1661 from itsdarshankumar/extension-package
Extension package
2023-03-31 11:19:11 -05:00
dependabot[bot] 3a0f56c9b1
build(deps): bump github.com/onsi/gomega from 1.27.5 to 1.27.6
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.5 to 1.27.6.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.5...v1.27.6)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 22:57:32 +00:00
Darshan Kumar 3e75a402ae
add nil condition for err
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-31 03:01:37 +05:30
Darshan Kumar 3004465685
update error in pull buildpack test
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-31 02:28:00 +05:30
Joe Kutner a2fc719dec
Merge branch 'main' into some-fixes 2023-03-30 15:39:57 -05:00
Joe Kutner faba2cb6bd
Merge branch 'main' into extension-package 2023-03-30 15:37:04 -05:00
chetan gupta a77fa1136e Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
updated builder.go

Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
chetan gupta 5144c8ffb3 Revert "updated builder.go"
This reverts commit 54b94073a94ca04f6c0a7ec507ea7d95324f94b0.

Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
chetan gupta 4ae6fa0966 updated builder.go
Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
Xinwei Xiong(cubxxw) 8d92bcc3c3 style(pkg/common): improve code readability and maintainability
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
Xinwei Xiong(cubxxw) 2357d6cd01 fix(makefile): Improve the contents of the file file
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
Xinwei Xiong(cubxxw) afa423098e feature(makefile): Add help and necessary comments to the makefile to make it more readable
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
Signed-off-by: chetan gupta <chetangupta123raj@gmail.com>
2023-03-30 19:45:48 +05:30
Joe Kutner 18662b26fc
Merge pull request #1677 from sap-contributions/replace-deprecated-gha-syntax
Replace deprecated GHA ::set-output syntax
2023-03-29 12:27:23 -05:00
edithwuly 39454cfd54
Merge branch 'main' into main 2023-03-29 19:02:11 +08:00
Philipp Stehle 5e732627e4 Replace deprecated GHA ::set-output syntax
Signed-off-by: Philipp Stehle <philipp.stehle@sap.com>
2023-03-29 08:24:52 +02:00
Darshan Kumar 35e706eb9c
Merge branch 'main' into extension-package 2023-03-29 06:13:20 +05:30
Joe Kutner d781d82420
Merge pull request #1679 from cubxxw/feature/makefile-help
feature(makefile): Add help and necessary comments to the makefile to…
2023-03-28 16:29:54 -05:00
Joe Kutner de7bf419b9
Merge branch 'main' into feature/makefile-help 2023-03-28 16:01:24 -05:00
Joe Kutner cc42e0ac4c
Merge pull request #1688 from buildpacks/dependabot/go_modules/google.golang.org/protobuf-1.29.1
build(deps): bump google.golang.org/protobuf from 1.29.0 to 1.29.1
2023-03-28 15:57:09 -05:00
dependabot[bot] bde5f5ef96
build(deps): bump google.golang.org/protobuf from 1.29.0 to 1.29.1
Bumps google.golang.org/protobuf from 1.29.0 to 1.29.1.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 20:19:51 +00:00
Joe Kutner 066cbe81b7
Merge pull request #1683 from buildpacks/jkutner/deps
Upgrade deps all at once
2023-03-28 15:18:47 -05:00
Joe Kutner 15ae9267a9
Merge branch 'main' into jkutner/deps 2023-03-28 14:54:32 -05:00
David Freilich 66b8ef95ec
Merge pull request #1660 from buildpacks/jkutner/rfc-0096
Implement RFC-0096 Remove Stacks & Mixins: phase 1
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-03-28 22:50:55 +03:00
Joe Kutner 67a3f035ed
Merge branch 'main' into jkutner/deps 2023-03-28 14:29:39 -05:00
David Freilich ed643ad1b5
Merge branch 'main' into jkutner/rfc-0096 2023-03-28 22:27:45 +03:00
David Freilich 1c9a1cd6e2
Merge pull request #1687 from buildpacks/fix/remove-acceptance-overrides
Fix acceptance compatibility tests
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-03-28 22:25:41 +03:00
Dovid Freilich 3338307125 Fix acceptance compatibility tests
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-03-28 21:44:20 +03:00
David Freilich f3caac7263
Merge branch 'main' into feature/makefile-help 2023-03-26 22:34:23 +03:00
Joe Kutner bbce937242
Merge branch 'main' into jkutner/deps 2023-03-24 13:01:18 -05:00
Joe Kutner 342bdbb10e
Merge remote-tracking branch 'origin/dependabot/github_actions/actions/setup-go-4' into jkutner/deps 2023-03-24 13:00:35 -05:00
Darshan Kumar 91d00e6495
Merge branch 'main' into extension-package 2023-03-24 22:41:51 +05:30
Darshan Kumar ab3f5f06a5
extend success messages for extensions and buildpack package
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-24 22:18:23 +05:30
Joe Kutner 9e9b7ba1f1
Merge pull request #1680 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.27.5
build(deps): bump github.com/onsi/gomega from 1.27.2 to 1.27.5
2023-03-24 11:08:51 -05:00
Joe Kutner 323e0d6bab
Merge remote-tracking branch 'origin/dependabot/go_modules/golang.org/x/oauth2-0.6.0' into jkutner/deps 2023-03-24 10:47:34 -05:00
Joe Kutner b1cd4871f7
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/google/go-containerregistry-0.14.0' into jkutner/deps 2023-03-24 10:47:13 -05:00
Joe Kutner 2d9e5b031a
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com/go-git/go-git/v5-5.6.1' into jkutner/deps 2023-03-24 10:46:57 -05:00
Joe Kutner 2290b4f964
Merge branch 'main' into dependabot/go_modules/github.com/onsi/gomega-1.27.5 2023-03-24 10:43:51 -05:00
Joe Kutner 11e71c7009
Merge pull request #1672 from ryanmoran/main
Use OS-default permissions when creating archive root
2023-03-24 10:43:02 -05:00
Joe Kutner ef4f137eda
Update internal/build/container_ops.go
Co-authored-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-03-24 10:42:02 -05:00
dependabot[bot] e022c25e00
build(deps): bump github.com/onsi/gomega from 1.27.2 to 1.27.5
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.2 to 1.27.5.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.2...v1.27.5)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 22:57:34 +00:00
Joe Kutner 6a90afec93
Fix lint error
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-03-22 08:40:17 -05:00
Xinwei Xiong(cubxxw) 687ec01518 style(pkg/common): improve code readability and maintainability
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
2023-03-22 17:47:18 +08:00
Xinwei Xiong(cubxxw) 9f8473648e fix(makefile): Improve the contents of the file file
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
2023-03-22 14:07:01 +08:00
Joe Kutner 2a38e924b6
Merge branch 'main' into jkutner/rfc-0096 2023-03-20 09:30:44 -05:00
Xinwei Xiong(cubxxw) b7f1563c59 feature(makefile): Add help and necessary comments to the makefile to make it more readable
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
2023-03-19 18:44:50 +08:00
Darshan Kumar 747d127646
add config tests
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-17 22:48:38 +05:30
Darshan Kumar 4efe830a83
add extension metadata tests in builder
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-17 07:03:56 +05:30
Darshan Kumar edd1c61420
fix folder cleaning error validation in test
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-17 04:28:00 +05:30
dependabot[bot] 68120c3497
build(deps): bump github.com/go-git/go-git/v5 from 5.6.0 to 5.6.1
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.6.0 to 5.6.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.6.0...v5.6.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 22:57:37 +00:00
dependabot[bot] 1d2d36629c
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 22:57:35 +00:00
dependabot[bot] d1368aee6e
build(deps): bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 22:56:49 +00:00
Ryan Moran 1186f6ad6b Use OS-default permissions when creating archive root
The archive.WriteDirToTar function takes a boolean `includeRoot` as an
argument that controls whether the tar archive created should include a
root directory. It also allows users to pass a sentinel value of -1 when
specifying the `mode` argument which results in the archive adopting the
file permissions for the existing files and directories from the given
source.

When these two features combine, we have some strange behavior. The root
directory is created adhoc in the tar archive with its mode set to the
given value of the `mode` argument. When that value is -1, this
translates into an `fs.FileMode`, which is a type of `uint32`, with a
value that looks like `dalTLDpSugct?rwxrwxrwx`. If that looks odd, it
looks less so in octal, `37777777777`. Ultimately, this overflows and
results in the permission bits `7777` being set, which results in a file
mode of `rwsrwsrwt`.

The key issue here is that we've triggered the special bits on the
permission set. Specifically, we're setting SUID, SGID, and Sticky. This
is strange to do in a function that simply wants to archive a directory.

Instead of the above described behavior, this change causes the
`archive.WriteDirToTar` function to follow the more standardized default
permissions for directory creation, that is to use 0777 and apply the
`umask`. This results in much more reasonable permission settings for
this root archive directory.

Signed-off-by: Ryan Moran <rmoran@vmware.com>
2023-03-15 08:28:04 -07:00
Darshan Kumar 26b6e89dfc
Merge branch 'main' into extension-package 2023-03-14 00:35:43 +05:30
Darshan Kumar 9525a10912
fix tests
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-14 00:01:56 +05:30
Darshan Kumar bebfe4083a
add tests for package_extension
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-13 23:41:49 +05:30
edithwuly c57c2d2e2c add TODO
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 14:08:19 +08:00
edithwuly 439078f9a4 format
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 13:56:38 +08:00
edithwuly 6ffe547d4e add extension to fakeimage
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 13:53:40 +08:00
Saumya 1c6ccff00c
Merge branch 'main' into Issue#1561 2023-03-13 10:31:05 +05:30
edithwuly c6953fa779 resolve version
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 12:33:01 +08:00
edithwuly 7dfa145942 format
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 12:07:40 +08:00
edithwuly f4b709bf96 unit test: overwritten and resolves version
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-13 11:08:52 +08:00
edithwuly 6469c33a0b
Merge branch 'buildpacks:main' into main 2023-03-13 11:01:40 +08:00
Joe Kutner 759d672c47
Merge pull request #1666 from buildpacks/bugfix/issue-1665-codecov-failed-to-upload
Fix random error with codecov upload
2023-03-10 14:03:05 -06:00
David Freilich f30de7e2a8
Merge branch 'main' into bugfix/issue-1665-codecov-failed-to-upload 2023-03-09 20:20:42 +02:00
dependabot[bot] 157e7ec279
build(deps): bump golang.org/x/oauth2 from 0.5.0 to 0.6.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 17:56:57 +00:00
Joe Kutner 0f0918dbf9
Merge pull request #1596 from jjbustamante/enhancement/issue-1548-imagee-in-oci-layout-format
`pack build` command to export to OCI layout format on disk
2023-03-08 14:12:10 -06:00
Juan Bustamante fd9dc9e81a
fixing issue on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-08 14:47:35 -05:00
Juan Bustamante 12c370a963
fixing windows tests, some of the tests are skip for now
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-08 12:40:32 -05:00
Juan Bustamante 4f8cc8a15e
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-03-08 07:40:47 -08:00
Joe Kutner 0769a31b9f
Merge branch 'main' into bugfix/issue-1665-codecov-failed-to-upload 2023-03-08 07:48:37 -06:00
Joe Kutner 95c80600b2
Merge pull request #1667 from buildpacks/jkutner/disable-aur-git
Disable AUR git publishing because we got revoked
2023-03-07 17:06:24 -06:00
Juan Bustamante 93995bf79a
Merge branch 'main' into bugfix/issue-1665-codecov-failed-to-upload 2023-03-07 17:29:43 -05:00
Joe Kutner 12c37e92bc
Disable AUR git publishing because we got revoked
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-03-07 16:21:46 -06:00
Juan Bustamante e038d46f86
Format issue
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-07 15:53:13 -05:00
Juan Bustamante 5a02b07ac5
Fixing test on windows
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-07 15:48:55 -05:00
Joe Kutner 07e073a12a
Merge pull request #1656 from buildpacks/dependabot/go_modules/github.com/go-git/go-git/v5-5.6.0
build(deps): bump github.com/go-git/go-git/v5 from 5.5.2 to 5.6.0
2023-03-07 14:42:54 -06:00
Juan Bustamante 18e758c199
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-03-07 14:52:26 -05:00
dependabot[bot] 61d36eb21f
build(deps): bump github.com/go-git/go-git/v5 from 5.5.2 to 5.6.0
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.5.2 to 5.6.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.5.2...v5.6.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 19:50:16 +00:00
Joe Kutner e52fd13261
Merge pull request #1663 from buildpacks/dependabot/go_modules/golang.org/x/mod-0.9.0
build(deps): bump golang.org/x/mod from 0.8.0 to 0.9.0
2023-03-07 13:48:48 -06:00
Juan Bustamante d2f16150e7
adding support for platform 0.11 and 0.12, fixing acceptance tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-07 14:25:09 -05:00
dependabot[bot] 6ebec1ab11
build(deps): bump golang.org/x/mod from 0.8.0 to 0.9.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 19:22:50 +00:00
Joe Kutner 2a831b0127
Merge pull request #1664 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.7.0
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0
2023-03-07 13:21:44 -06:00
Joe Kutner 361857d91d
Merge branch 'main' into dependabot/go_modules/golang.org/x/crypto-0.7.0 2023-03-07 12:59:06 -06:00
Sambhav Kothari b8d0821ab8
Merge pull request #1659 from buildpacks/clarify/trusted-builder-help-text
Clarify trusted builder help text
2023-03-07 17:49:48 +00:00
Joe Kutner 3b71fb5acd
Merge branch 'main' into clarify/trusted-builder-help-text 2023-03-07 11:21:57 -06:00
Juan Bustamante 4bca03fa3f
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-03-07 11:42:52 -05:00
Juan Bustamante de6c5a634d
adding codecov token to build workflow
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-07 11:38:34 -05:00
dependabot[bot] 391f0f4d11
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 15:48:25 +00:00
Joe Kutner c677398b17
Merge pull request #1650 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.27.2
build(deps): bump github.com/onsi/gomega from 1.27.1 to 1.27.2
2023-03-07 09:47:16 -06:00
Joe Kutner 7ea874dc54
Merge branch 'main' into clarify/trusted-builder-help-text 2023-03-07 09:15:58 -06:00
Joe Kutner 2de305fba4
Merge branch 'main' into dependabot/go_modules/github.com/onsi/gomega-1.27.2 2023-03-07 09:14:11 -06:00
Darshan Kumar 20fceed9e9
add tests for extension_package command
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 10:12:06 +05:30
Darshan Kumar dd4f694efc
patch builder and builder test to adapt extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 05:51:35 +05:30
Darshan Kumar cc63b9efe2
patch builder for extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 05:30:08 +05:30
Darshan Kumar f9881b903d
Merge branch 'main' into extension-package 2023-03-07 04:47:54 +05:30
Darshan Kumar 0baa22df77 fix extension builder for saveasfile
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:21 +05:30
Darshan Kumar ec105ea949 fix builder
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:21 +05:30
Darshan Kumar f9431500a2 fix extension builder
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:20 +05:30
Darshan Kumar 1891ec1739 fix read for extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:20 +05:30
Darshan Kumar 1be495dd52 fix format
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:19 +05:30
Darshan Kumar 5a4ceea060 add package-extension
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-03-07 04:42:19 +05:30
Juan Bustamante 7761d79b5f
Fixing broken tests
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-06 11:00:57 -05:00
Joe Kutner 6034f55731
Implement RFC-0096 Remove Stacks & Mixins: phase 1
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-03-05 10:55:45 -06:00
Juan Bustamante a3aa7fd85c
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-03-04 17:14:12 -05:00
Sambhav Kothari f1cde325b2
Merge pull request #1658 from buildpacks/fix/sbom-help-text
Fix help text for SBOM
2023-03-04 15:02:14 +00:00
Sambhav Kothari 9e60d31a84
Merge branch 'main' into clarify/trusted-builder-help-text 2023-03-04 14:41:50 +00:00
Sambhav Kothari c1e74c05ae
Merge branch 'main' into fix/sbom-help-text 2023-03-04 14:33:43 +00:00
Sambhav Kothari a89477db45
Merge pull request #1657 from buildpacks/bugfix/issue-1654
Fix broken tests merged by mistake in main branch
2023-03-04 14:32:59 +00:00
Juan Bustamante efdcdc88de
removing error validation when cleaning tmp dir, it was failing on windows runner in the CI
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-03 10:57:05 -05:00
Natalie Arellano 9cff7f1512 Clarify trusted builder help text
The help text for build should also contain a link to the docs, so that users can understand further what it means to trust a builder

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-03-03 10:36:49 -05:00
Natalie Arellano 14be6f1fad Fix help text for SBOM
Software Bill of Materials is the industry standard

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-03-03 10:31:17 -05:00
Juan Bustamante ea8696a075
Fixing some of the failing tests merged by mistake after the CI stopped
working

Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-03 10:11:23 -05:00
Juan Bustamante 3c1a801b5a
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-03-01 16:39:44 -05:00
David Freilich deb588f276
Merge pull request #1652 from buildpacks/bugfix/ci-reporting-error
Removes tee so that we can see if CI reporting failures
2023-03-01 22:26:02 +02:00
Juan Bustamante 08418486ca
Just a try to check if the CI is fixed after this
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-03-01 11:13:27 -05:00
edithwuly 7ea08cd7a5
Merge branch 'main' into main 2023-03-01 19:58:36 +08:00
edithwuly fdcd17d551 format
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:43:29 +08:00
Aidan Delaney 92954c07cb Fix typo in pack stack suggest
Stack suggest should use the singular of stack, not stacks.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:42 +08:00
dependabot[bot] 57af2081ed build(deps): bump crazy-max/ghaction-chocolatey from 2.0.0 to 2.1.0
Bumps [crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/crazy-max/ghaction-chocolatey/releases)
- [Changelog](https://github.com/crazy-max/ghaction-chocolatey/blob/v2/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-chocolatey/compare/v2...v2)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-chocolatey
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:41 +08:00
dependabot[bot] 97025d01ee build(deps): bump golang.org/x/sys in /tools
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20220209214540-3681064d5158 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:41 +08:00
dependabot[bot] f556bb3611 build(deps): bump github.com/onsi/gomega from 1.27.0 to 1.27.1
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.0 to 1.27.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.0...v1.27.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:41 +08:00
dependabot[bot] c10621ccab build(deps): bump github.com/gdamore/tcell/v2 from 2.5.4 to 2.6.0
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.4 to 2.6.0.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.4...v2.6.0)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:38 +08:00
dependabot[bot] ca59103951 build(deps): bump golang.org/x/net from 0.6.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:38 +08:00
Joe Kutner 8f65364bd2 Update rebaser for lifecycle 0.16.0
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:38 +08:00
Matej Vasek eba8581566 perf: parallelize builder's module processing
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:37 +08:00
dependabot[bot] cb819ec96d build(deps): bump github.com/onsi/gomega from 1.26.0 to 1.27.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:37 +08:00
dependabot[bot] c230ae39be build(deps): bump github.com/buildpacks/lifecycle from 0.15.3 to 0.16.0
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.15.3 to 0.16.0.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.15.3...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:37 +08:00
dependabot[bot] 9b604e4312 build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.0+incompatible to 23.0.1+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.0...v23.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:36 +08:00
dependabot[bot] daaf58a0ee build(deps): bump github.com/prometheus/client_golang in /tools
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.7.1 to 1.11.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.7.1...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:34 +08:00
dependabot[bot] b18e1d0ea5 build(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.18
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.15 to 1.6.18.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.15...v1.6.18)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:34 +08:00
edithwuly 4682cdcea4 add --extension
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:33 +08:00
dependabot[bot] 82460d06f1 build(deps): bump golang.org/x/oauth2 from 0.4.0 to 0.5.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:33 +08:00
dependabot[bot] 31f03d9aa8 build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: edithwuly <edithwuly@163.com>
2023-03-01 19:37:32 +08:00
dependabot[bot] 0910101e5b
build(deps): bump github.com/onsi/gomega from 1.27.1 to 1.27.2
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.1 to 1.27.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.1...v1.27.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 22:57:54 +00:00
Joe Kutner 45f09b4537
Merge pull request #1647 from AidanDelaney/stack-suggest-example
Fix typo in pack stack suggest
2023-02-28 09:30:11 -06:00
Juan Bustamante 8cfab730bf
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-02-27 11:16:45 -05:00
Aidan Delaney 0997030f0b Fix typo in pack stack suggest
Stack suggest should use the singular of stack, not stacks.

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
2023-02-27 06:28:56 +00:00
Joe Kutner 904dcfe907
Merge pull request #1645 from buildpacks/dependabot/go_modules/tools/golang.org/x/sys-0.1.0
build(deps): bump golang.org/x/sys from 0.0.0-20220209214540-3681064d5158 to 0.1.0 in /tools
2023-02-25 09:04:10 -06:00
Joe Kutner 8ebdb3fd74
Merge branch 'main' into dependabot/go_modules/tools/golang.org/x/sys-0.1.0 2023-02-25 08:41:20 -06:00
Joe Kutner 7861f73e9c
Merge pull request #1644 from buildpacks/dependabot/github_actions/crazy-max/ghaction-chocolatey-2.1.0
build(deps): bump crazy-max/ghaction-chocolatey from 2.0.0 to 2.1.0
2023-02-25 08:41:07 -06:00
Joe Kutner 6918797df1
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format 2023-02-25 08:18:34 -06:00
dependabot[bot] ebafbe8e68
build(deps): bump golang.org/x/sys in /tools
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20220209214540-3681064d5158 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 05:57:59 +00:00
dependabot[bot] 80c6971a6d
build(deps): bump crazy-max/ghaction-chocolatey from 2.0.0 to 2.1.0
Bumps [crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/crazy-max/ghaction-chocolatey/releases)
- [Changelog](https://github.com/crazy-max/ghaction-chocolatey/blob/v2/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-chocolatey/compare/v2...v2)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-chocolatey
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 22:56:58 +00:00
Joe Kutner 9d4a4c364d
Merge pull request #1642 from buildpacks/dependabot/go_modules/github.com/gdamore/tcell/v2-2.6.0
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.4 to 2.6.0
2023-02-24 07:18:24 -08:00
Joe Kutner 06d8ce1fee
Merge branch 'main' into dependabot/go_modules/github.com/gdamore/tcell/v2-2.6.0 2023-02-24 06:54:23 -08:00
Joe Kutner 5f4ee688ff
Merge pull request #1641 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.27.1
build(deps): bump github.com/onsi/gomega from 1.27.0 to 1.27.1
2023-02-24 06:54:08 -08:00
Juan Bustamante 2c636a78b2
fixing validation on previous image
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-23 12:49:58 -05:00
Juan Bustamante ead6d1295d
renaming some variables as it was before
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-23 10:37:00 -05:00
Juan Bustamante fe63a00a57
adding test coverage for build
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-23 10:03:16 -05:00
Juan Bustamante d3a9532f16
adding coverage for fetcher
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-22 12:30:45 -05:00
Juan Bustamante d21e0c8aef
adding test coverage for input image reference
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-22 09:04:31 -05:00
Juan Bustamante 70c5416e1d
adding test coverage to the configuration files
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-22 08:29:47 -05:00
Juan Bustamante 64ea6b7bfc
adding test coverage for build.go
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-21 18:18:00 -05:00
dependabot[bot] f7b2cccfba
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.4 to 2.6.0
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.4 to 2.6.0.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.4...v2.6.0)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 22:57:47 +00:00
Juan Bustamante 79c7e54d4d
adding unit test coverage for lifecycle_execution.go
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-21 16:02:25 -05:00
Juan Bustamante 1185676cc3
fixing lint error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-20 16:47:17 -05:00
Juan Bustamante 8f83efcd36
Merge branch 'main' into enhancement/issue-1548-imagee-in-oci-layout-format
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-20 16:22:33 -05:00
Juan Bustamante 4fe92254fb
adding layout-dir flag according to latest change in the lifecycle
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-20 15:30:52 -05:00
dependabot[bot] 5ac133a310
build(deps): bump github.com/onsi/gomega from 1.27.0 to 1.27.1
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.0 to 1.27.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.0...v1.27.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 22:58:04 +00:00
Joe Kutner 6219ee5a3a
Merge pull request #1640 from buildpacks/dependabot/go_modules/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.6.0 to 0.7.0
2023-02-17 15:37:46 -06:00
dependabot[bot] 2321d7bdcd
build(deps): bump golang.org/x/net from 0.6.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 21:09:49 +00:00
Joe Kutner 1994d98c8d
Merge pull request #1631 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.16.0
build(deps): bump github.com/buildpacks/lifecycle from 0.15.3 to 0.16.0
2023-02-17 15:07:10 -06:00
Joe Kutner 560dd9e988
Update rebaser for lifecycle 0.16.0
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-17 14:42:24 -06:00
Joe Kutner 202c86f35b
Merge branch 'main' into dependabot/go_modules/github.com/buildpacks/lifecycle-0.16.0 2023-02-17 13:51:28 -06:00
Juan Bustamante 256b0dc457
root path for win or linux
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:08:31 -05:00
Juan Bustamante 87cc8d3bfb
WIP - tagging the image
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:07:50 -05:00
Juan Bustamante 114e8b149e
WIP - Pointing to the imgutil version with name.ref annotation
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:07:50 -05:00
Juan Bustamante abc51fe044
WIP - fixing linting error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:07:49 -05:00
Juan Bustamante 7e5829e46a
WIP - Pointing to the imgutil version with name.ref annotation
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:07:42 -05:00
Juan Bustamante edc2bde4c3
WIP - I removed the layout-repo volume and now every input (run-image, app image destination and previous image) is mounting independently
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:27 -05:00
Juan Bustamante a204c11f18
WIP - fixing linter error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:27 -05:00
Juan Bustamante c6cef8a86e
WIP - procesing previous image
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:26 -05:00
Juan Bustamante 99ad5450e8
WIP - fixing lint error
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:26 -05:00
Juan Bustamante c9e1e0cb52
WIP - running code formatting
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:26 -05:00
Juan Bustamante 4d6d39d247
WIP - first version
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-17 12:05:26 -05:00
Joe Kutner a803a52f0a
Merge pull request #1634 from matejvasek/perf-parallelize
perf: parallelize builder's module processing
2023-02-17 10:19:08 -06:00
Joe Kutner 1b2dd9f786
Merge branch 'main' into perf-parallelize 2023-02-17 09:51:04 -06:00
Joe Kutner 2de24284e9
Merge branch 'main' into dependabot/go_modules/github.com/buildpacks/lifecycle-0.16.0 2023-02-16 19:05:32 -06:00
Joe Kutner 0f0a40bdbc
Merge pull request #1639 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.27.0
build(deps): bump github.com/onsi/gomega from 1.26.0 to 1.27.0
2023-02-16 19:05:22 -06:00
dependabot[bot] 90b9e2a9d2
build(deps): bump github.com/onsi/gomega from 1.26.0 to 1.27.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 22:57:46 +00:00
dependabot[bot] 12b00a86de
build(deps): bump github.com/buildpacks/lifecycle from 0.15.3 to 0.16.0
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.15.3 to 0.16.0.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.15.3...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 17:45:09 +00:00
Joe Kutner 0536dc51ec
Merge pull request #1638 from buildpacks/dependabot/go_modules/github.com/containerd/containerd-1.6.18
build(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.18
2023-02-16 10:25:32 -06:00
Joe Kutner 20fc69d822
Merge branch 'main' into dependabot/go_modules/github.com/containerd/containerd-1.6.18 2023-02-16 09:42:25 -06:00
Joe Kutner 3e7fe8ae49
Merge pull request #1633 from buildpacks/dependabot/go_modules/tools/github.com/prometheus/client_golang-1.11.1
build(deps): bump github.com/prometheus/client_golang from 1.7.1 to 1.11.1 in /tools
2023-02-16 09:23:49 -06:00
Joe Kutner a7c74097d5
Merge branch 'main' into dependabot/go_modules/tools/github.com/prometheus/client_golang-1.11.1 2023-02-16 08:57:32 -06:00
Joe Kutner d5d35fd1ed
Merge pull request #1630 from buildpacks/dependabot/go_modules/github.com/docker/cli-23.0.1incompatible
build(deps): bump github.com/docker/cli from 23.0.0+incompatible to 23.0.1+incompatible
2023-02-16 08:56:59 -06:00
dependabot[bot] 98a6acb12b
build(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.18
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.15 to 1.6.18.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.15...v1.6.18)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 14:26:54 +00:00
Matej Vasek eb35d47a2a
Merge branch 'main' into perf-parallelize 2023-02-16 14:40:25 +01:00
dependabot[bot] e5c289a10c
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 23.0.0+incompatible to 23.0.1+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v23.0.0...v23.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 05:44:49 +00:00
dependabot[bot] 288f81e816
build(deps): bump github.com/prometheus/client_golang in /tools
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.7.1 to 1.11.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.7.1...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 05:44:26 +00:00
Joe Kutner de786a272d
Merge pull request #1629 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.6.0
build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0
2023-02-15 23:43:27 -06:00
Joe Kutner a06e805af9
Merge branch 'main' into dependabot/go_modules/golang.org/x/crypto-0.6.0 2023-02-15 23:15:43 -06:00
Joe Kutner 2fcb5e58d8
Merge branch 'main' into perf-parallelize 2023-02-15 23:15:29 -06:00
Joe Kutner 1b4704412f
Merge pull request #1628 from buildpacks/dependabot/go_modules/golang.org/x/oauth2-0.5.0
build(deps): bump golang.org/x/oauth2 from 0.4.0 to 0.5.0
2023-02-15 23:11:40 -06:00
Joe Kutner eeb50d807c
Merge branch 'main' into dependabot/go_modules/golang.org/x/oauth2-0.5.0 2023-02-15 22:47:22 -06:00
Joe Kutner 16d6187f89
Merge pull request #1616 from itsdarshankumar/extension-inspect
Extension-Inspect
2023-02-15 22:47:09 -06:00
Saumya 2e7e1dac31
Merge branch 'main' into Issue#1561 2023-02-15 22:56:56 +05:30
Matej Vasek f0007394ab perf: parallelize builder's module processing
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-15 17:53:14 +01:00
Darshan Kumar 7ed52d2a5e fix typo
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-14 02:13:59 +05:30
Natalie Arellano 527cbf42b6
Merge branch 'main' into extension-inspect 2023-02-13 11:54:24 -05:00
Darshan Kumar b462061f1b remove map for extract extension
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:55 +05:30
Darshan Kumar 67ea80a504 add test for inspect extenion client and fix inspect image test
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:55 +05:30
Darshan Kumar 3e35c0fb3a fix tests
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:55 +05:30
Darshan Kumar 3f3b383776 redefine for image-extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:55 +05:30
Darshan Kumar 3a0ec9736b add check for extension
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:54 +05:30
Darshan Kumar c1e876c5f6 add extension_inspect tests
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:54 +05:30
Darshan Kumar 75c3abd447 add functionality for inspect extensions
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-13 18:37:54 +05:30
dependabot[bot] f77cfabcce
build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 22:58:09 +00:00
dependabot[bot] 30210390ad
build(deps): bump golang.org/x/oauth2 from 0.4.0 to 0.5.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 22:57:57 +00:00
David Freilich 0a19002ffa
Merge pull request #1626 from buildpacks/dependabot/go_modules/golang.org/x/text-0.7.0
build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-02-09 10:26:14 +02:00
dependabot[bot] c0aadccdea
build(deps): bump golang.org/x/text from 0.6.0 to 0.7.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 07:26:26 +00:00
David Freilich 4412ca8309
Merge pull request #1627 from buildpacks/dependabot/go_modules/golang.org/x/mod-0.8.0
build(deps): bump golang.org/x/mod from 0.7.0 to 0.8.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-02-09 09:25:01 +02:00
dependabot[bot] 18657ace62
build(deps): bump golang.org/x/mod from 0.7.0 to 0.8.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 22:01:48 +00:00
Joe Kutner 4eadd32b5f
Merge pull request #1625 from buildpacks/dependabot/go_modules/golang.org/x/term-0.5.0
build(deps): bump golang.org/x/term from 0.4.0 to 0.5.0
2023-02-08 08:54:41 -06:00
SaumyaBhushan 5f23ec6358 updated node version
Signed-off-by: SaumyaBhushan <saumya@knoldus.com>
2023-02-08 16:32:21 +02:00
dependabot[bot] d34ea4f834
build(deps): bump golang.org/x/term from 0.4.0 to 0.5.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/term/releases)
- [Commits](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-07 22:01:41 +00:00
David Freilich b3ff849984
Merge pull request #1624 from jjbustamante/bugfix/issue-1618-buildpack-URL-formatted-incorrect-when-using-a-registry-mirror
Buildpack URL formatted incorrect when using a registry mirror
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-02-07 20:13:48 +02:00
Juan Bustamante 0224717105 removing logging message
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-07 19:17:27 +02:00
Juan Bustamante b84f0a7228 fixing buildpack name reference translation when a digest is included
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-02-07 19:17:27 +02:00
David Freilich 202ea2d637
Merge pull request #1622 from matejvasek/narrow-docker-iface
cleanup: narrow docker interface
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-02-07 19:02:04 +02:00
Matej Vasek b7d11bd3d4 refactor: narrow docker interface
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-06 20:25:09 +01:00
Joe Kutner 2e05ee8e91
Merge pull request #1621 from buildpacks/jkutner/rfc-0078
RFC-0078 Support for --pre-buildpack and --post-buildpack
2023-02-04 14:13:55 -06:00
Joe Kutner 845b2eb438
Merge branch 'main' into jkutner/rfc-0078 2023-02-03 14:47:02 -06:00
Joe Kutner c16cf520dd
Merge pull request #1614 from jjbustamante/bugfix/issue-1609-adding-warning-to-sbom-download
Adding a warning message when the SBoM could not be found in the daemon
2023-02-03 14:46:22 -06:00
Joe Kutner d6731f046a
Merge branch 'main' into bugfix/issue-1609-adding-warning-to-sbom-download 2023-02-03 14:19:27 -06:00
Joe Kutner a16b3c67f7
Merge branch 'main' into jkutner/rfc-0078 2023-02-03 14:18:17 -06:00
Joe Kutner 21d769ee80
Merge pull request #1603 from itsdarshankumar/extensions
add pack extension --help
2023-02-03 14:17:57 -06:00
Joe Kutner 7bc2ab2a5a
Merge branch 'main' into extensions 2023-02-03 13:43:43 -06:00
Joe Kutner 22be57e4dd
Merge pull request #1619 from buildpacks/dependabot/go_modules/github.com/docker/cli-23.0.0incompatible
build(deps): bump github.com/docker/cli from 20.10.23+incompatible to 23.0.0+incompatible
2023-02-03 13:43:11 -06:00
Joe Kutner 04fb5a7e4e
Revert doc changes from refactor
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-03 13:41:27 -06:00
Joe Kutner b28ae59c4b
Update internal/builder/writer/human_readable.go
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-03 13:03:24 -06:00
Joe Kutner d8a3962a76
Update internal/commands/build.go
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-03 13:02:43 -06:00
Joe Kutner 5cbc5feb78
Update internal/commands/build.go
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-03 13:02:23 -06:00
Joe Kutner d67ab0a701
RFC-0078 Support for --pre-buildpack and --post-buildpack
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2023-02-03 10:30:46 -06:00
dependabot[bot] 2ce066bcf5
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.23+incompatible to 23.0.0+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.23...v23.0.0)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:01:32 +00:00
Darshan Kumar f6d7a9c11b
Merge branch 'main' into extensions 2023-02-02 17:43:30 +05:30
Darshan Kumar d820b365a4 add tests for extension
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-02 17:42:55 +05:30
Darshan Kumar 25f6af3192 fix typo
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-02 17:42:55 +05:30
Darshan Kumar ec1048e616 add pack extension --help
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-02-02 17:42:55 +05:30
Joe Kutner 05c18f305b
Merge pull request #1617 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.26.0
build(deps): bump github.com/onsi/gomega from 1.20.2 to 1.26.0
2023-02-01 20:27:26 -06:00
dependabot[bot] 46682bfe4b
build(deps): bump github.com/onsi/gomega from 1.20.2 to 1.26.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.20.2 to 1.26.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.20.2...v1.26.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 01:41:29 +00:00
Joe Kutner 192d4834d1
Merge pull request #1597 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.15.3
build(deps): bump github.com/buildpacks/lifecycle from 0.15.2 to 0.15.3
2023-02-01 17:08:56 -06:00
dependabot[bot] 97a87e3b04
build(deps): bump github.com/buildpacks/lifecycle from 0.15.2 to 0.15.3
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.15.2 to 0.15.3.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.15.2...v0.15.3)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 22:45:00 +00:00
Joe Kutner ccdf12a67d
Merge pull request #1599 from buildpacks/dependabot/go_modules/github.com/dustin/go-humanize-1.0.1
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
2023-02-01 16:43:20 -06:00
Joe Kutner b82246df36
Merge branch 'main' into dependabot/go_modules/github.com/dustin/go-humanize-1.0.1 2023-02-01 16:03:42 -06:00
Joe Kutner c8bebbee80
Merge pull request #1602 from buildpacks/dependabot/go_modules/github.com/docker/cli-20.10.23incompatible
build(deps): bump github.com/docker/cli from 20.10.22+incompatible to 20.10.23+incompatible
2023-02-01 16:03:09 -06:00
dependabot[bot] c580d9f295
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases)
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 15:18:14 +00:00
Joe Kutner 1727ee17cc
Merge branch 'main' into dependabot/go_modules/github.com/docker/cli-20.10.23incompatible 2023-02-01 09:17:16 -06:00
Joe Kutner 83465e954f
Merge pull request #1608 from buildpacks/dependabot/go_modules/github.com/google/go-containerregistry-0.13.0
build(deps): bump github.com/google/go-containerregistry from 0.12.1 to 0.13.0
2023-02-01 09:16:46 -06:00
Joe Kutner 68f43b2df0
Merge branch 'main' into dependabot/go_modules/github.com/google/go-containerregistry-0.13.0 2023-02-01 08:34:46 -06:00
Joe Kutner 7bf0779b60
Merge branch 'main' into dependabot/go_modules/github.com/docker/cli-20.10.23incompatible 2023-02-01 08:33:00 -06:00
Juan Bustamante 73b0ca5e7e
Merge branch 'main' into bugfix/issue-1609-adding-warning-to-sbom-download 2023-02-01 09:19:32 -05:00
Joe Kutner 582d598e20
Merge pull request #1611 from itsdarshankumar/pack-inspect
show extensions when pack inspect
2023-01-31 22:12:57 -06:00
Joe Kutner 0c8cdf73b9
Merge branch 'main' into dependabot/go_modules/github.com/docker/cli-20.10.23incompatible 2023-01-31 21:44:57 -06:00
Joe Kutner 54f846fefa
Merge branch 'main' into pack-inspect 2023-01-31 21:44:20 -06:00
Juan Bustamante d6ba58ba0a
Merge branch 'main' into bugfix/issue-1609-adding-warning-to-sbom-download 2023-01-31 16:11:13 -05:00
Joe Kutner 66fa019336
Merge pull request #1607 from joe-kimmel-vmw/lifecyle-api-versions-check
if lifecycle image is supplied, consider its apis
2023-01-31 12:09:10 -06:00
Joe Kutner be5a7092fc
Merge branch 'main' into lifecyle-api-versions-check 2023-01-31 11:40:23 -06:00
Juan Bustamante 0e88ae2e5b
added a warning message when the image could not be found in the sdaemon to download the sbom
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-01-30 17:14:01 -05:00
Darshan Kumar 7f3951a40a
remove image extension struct
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-01-31 01:29:43 +05:30
Darshan Kumar 36ccb86019 add tests for inspect_image
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-01-31 00:18:52 +05:30
Darshan Kumar 5df15965bb add tests
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-01-31 00:18:52 +05:30
Darshan Kumar 3dde19afda show valid extension template in inspect
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-01-31 00:18:52 +05:30
Darshan Kumar e938d33948 show extensions when pack inspect
Signed-off-by: Darshan Kumar <itsdarshankumar@gmail.com>
2023-01-31 00:18:52 +05:30
dependabot[bot] 5398571a2c
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.12.1 to 0.13.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.12.1...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-24 22:01:39 +00:00
Joe Kimmel cef80f6264 if lifecycle image is supplied, consider its apis
if we're injecting a custom lifecycle image into an untrusted builder,
when we select the platform api version we'll consider the intersection
between the builder, the lifecycle, and this instance of pack
when choosing which version of the api to speak.

because this is a rare case, the default is that there is no lifecycle
api list, which is treated as no constraints.

Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-01-23 14:03:53 -07:00
dependabot[bot] c93e639bba
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.22+incompatible to 20.10.23+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.22...v20.10.23)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-22 08:24:35 +00:00
Sambhav Kothari 2e7e9b6253
Merge pull request #1590 from buildpacks/fix/check-release
Fix check release workflow
2023-01-22 08:04:43 +00:00
Sambhav Kothari 9c80177931
Merge branch 'main' into fix/check-release 2023-01-22 07:37:52 +00:00
Sambhav Kothari 8e02defd3c
Merge pull request #1600 from jjbustamante/bugfix/issue-1453
Fixing non-deterministic layer and metadata ordering during pack builder create
2023-01-22 07:37:29 +00:00
Juan Bustamante ed319e0658
Adding test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-01-20 18:35:53 -05:00
Juan Bustamante 888e4912a7
adding test coverage
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-01-19 17:08:08 -05:00
Juan Bustamante 2eeeb545b3
considering the version also to determined the order of the module
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-01-19 15:41:15 -05:00
Juan Bustamante 60033e314e
WIP - sorting the buildpacks modules to iterate over them always in the same order
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
2023-01-18 17:17:20 -05:00
Joe Kutner 6c23a08af1
Merge pull request #1598 from joe-kimmel-vmw/1221-report-toml-for-the-peoples
adds flag for saving report toml to back build and rebase
2023-01-13 21:36:07 -06:00
Joe Kimmel ac117c3f2b
Merge branch 'main' into 1221-report-toml-for-the-peoples
Signed-off-by: Joe Kimmel <86852107+joe-kimmel-vmw@users.noreply.github.com>
2023-01-12 15:42:20 -07:00
Joe Kimmel b3d0512c94 manually verified rebase writes report.toml
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-01-12 15:25:55 -07:00
Joe Kimmel b05340a8b5 report toml for build phase
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-01-12 15:25:48 -07:00
David Freilich d1024e95c6
Merge pull request #1591 from buildpacks/dependabot/go_modules/github.com/docker/cli-20.10.22incompatible
build(deps): bump github.com/docker/cli from 20.10.21+incompatible to 20.10.22+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-12 12:57:04 +02:00
dependabot[bot] e48e6dcacf
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.21+incompatible to 20.10.22+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.21...v20.10.22)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 10:23:46 +00:00
David Freilich dd9f34e949
Merge pull request #1594 from jasonschroeder-sfdc/golang_1.19
build: update to golang 1.19
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-12 12:18:44 +02:00
Jason Schroeder 745be45c1b
refactor: "io/ioutils" is deprecated
This package has been deprecated since Go 1.16. Find/Replace
alternatives.

Signed-off-by: Jason Schroeder <jschroeder@salesforce.com>
2023-01-11 09:29:49 -08:00
Jason Schroeder f774522845
style: gofmt everything
`make format` to update styles.

Signed-off-by: Jason Schroeder <jschroeder@salesforce.com>
2023-01-11 09:29:38 -08:00
Jason Schroeder 403dd50514
build: update to golang 1.19
Update GH Actions and go.mod with golang 1.19

Signed-off-by: Jason Schroeder <jschroeder@salesforce.com>
2023-01-11 09:26:35 -08:00
David Freilich b4680d03d6
Merge pull request #1592 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.5.0
build(deps): bump golang.org/x/crypto from 0.3.0 to 0.5.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-11 10:47:59 +02:00
dependabot[bot] ce842df742
build(deps): bump golang.org/x/crypto from 0.3.0 to 0.5.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 08:18:54 +00:00
David Freilich a9c0e9c856
Merge pull request #1587 from buildpacks/dependabot/go_modules/github.com/go-git/go-git/v5-5.5.2
build(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.5.2
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-11 10:17:13 +02:00
dependabot[bot] 1dd8b4ff0a
build(deps): bump github.com/go-git/go-git/v5 from 5.4.2 to 5.5.2
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.4.2 to 5.5.2.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.4.2...v5.5.2)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 07:53:32 +00:00
David Freilich 8b2d729a8e
Merge pull request #1593 from buildpacks/dependabot/go_modules/github.com/gdamore/tcell/v2-2.5.4
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-11 09:52:11 +02:00
dependabot[bot] b83889b517
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.3 to 2.5.4.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.3...v2.5.4)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 22:01:56 +00:00
Natalie Arellano 720c8e66fe Fix check release workflow
There is no go.mod before checkout

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2023-01-09 23:49:47 +02:00
David Freilich 1b0e8ee49f
Merge pull request #1581 from harikannan512/enhancement-1488
add Extensions and Detection Order (Extensions)
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-09 23:26:21 +02:00
harikannan512 54a04e2ca1 Merge branch 'main' into enhancement-1488
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2023-01-09 20:58:19 +00:00
harikannan512 59685b5384 no depth used in order for extensions
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2023-01-09 20:38:50 +00:00
David Freilich 434437a68e
Merge pull request #1588 from buildpacks/dependabot/go_modules/github.com/containerd/containerd-1.6.12
build(deps): bump github.com/containerd/containerd from 1.6.9 to 1.6.12
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-09 16:21:12 +02:00
dependabot[bot] 8afafbd203
build(deps): bump github.com/containerd/containerd from 1.6.9 to 1.6.12
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.9 to 1.6.12.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.9...v1.6.12)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 08:06:41 +00:00
David Freilich ba6f7c0176
Merge pull request #1563 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.15.2
build(deps): bump github.com/buildpacks/lifecycle from 0.15.1 to 0.15.2
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-09 10:03:27 +02:00
dependabot[bot] a34b67e3e0
build(deps): bump github.com/buildpacks/lifecycle from 0.15.1 to 0.15.2
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.15.1...v0.15.2)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 07:29:52 +00:00
David Freilich 8b4fa1506c
Merge pull request #1583 from buildpacks/dependabot/go_modules/golang.org/x/oauth2-0.4.0
build(deps): bump golang.org/x/oauth2 from 0.2.0 to 0.4.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-09 09:28:41 +02:00
dependabot[bot] df74f3b54a
build(deps): bump golang.org/x/oauth2 from 0.2.0 to 0.4.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.2.0 to 0.4.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.2.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 07:06:24 +00:00
David Freilich c41725c466
Merge pull request #1589 from buildpacks/dfreilich-patch-1
Add Github token to tests
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-09 09:03:45 +02:00
David Freilich 1b49d6881c Add Github token to tests
injecting the Github Token should help ensure that tests, particular the wcow test, don't fail for issues with pulling Github artifacts

Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-08 22:25:24 +02:00
David Freilich a25a300f2f
Merge pull request #1585 from joe-kimmel-vmw/preserve-latest-test-output
Preserves test output for easier grepping
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-08 22:25:09 +02:00
Joe Kimmel dda3f384b9 tees test output to a gitignored file
Signed-off-by: Joe Kimmel <jkimmel@vmware.com>
2023-01-08 22:00:25 +02:00
David Freilich c72928d173
Merge pull request #1584 from buildpacks/dependabot/go_modules/golang.org/x/text-0.6.0
build(deps): bump golang.org/x/text from 0.4.0 to 0.6.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2023-01-08 21:57:41 +02:00
harikannan512 9e38d1b88a intermediate commit for github actions
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2023-01-07 23:07:11 +00:00
harikannan512 9d6a45cd5f add json/yaml tests + fix depth (order for extensions)(acceptance test left)
Signed-off-by: harikannan <hariprasad.kannan@wexinc,com>
2023-01-07 20:58:32 +00:00
Harikannan512 02badd29fc try to reach codecov threshold
Signed-off-by: harikannan <hariprasad.kannan@wexinc,com>
2023-01-05 17:22:38 +00:00
harikannan512 8226e2d7dd acceptance tests include empty extensions section (assume optional)
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2023-01-05 12:47:43 +00:00
dependabot[bot] 5212965717
build(deps): bump golang.org/x/text from 0.4.0 to 0.6.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-04 22:02:30 +00:00
harikannan512 0f97a0307d add order extensions (need to figure out acceptance tests)
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2022-12-24 02:22:29 +00:00
harikannan512 5ce07bbbf7 unused variable error in build
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2022-12-23 02:33:26 +00:00
harikannan512 bf14dd6132 unused variable error in test
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2022-12-23 02:31:28 +00:00
harikannan512 cbe9167a27 unused variable error in test
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2022-12-23 02:21:41 +00:00
harikannan512 9830a9af27 add Extensions (no DetectionOrder yet)
Signed-off-by: harikannan512 <harikannan512@gmail.com>
2022-12-23 02:05:32 +00:00
Sambhav Kothari 19b9f4c1f0
Merge pull request #1572 from jasonschroeder-sfdc/golang_1.18 2022-12-15 23:32:38 +05:30
Jason Schroeder 8c495d9395 build: update to golang 1.18
Update GH Actions and go.mod with golang 1.18

Signed-off-by: Jason Schroeder <jschroeder@salesforce.com>
2022-12-15 09:24:05 -08:00
Sambhav Kothari 822be82150
Merge pull request #1576 from buildpacks/feature/check-release 2022-12-15 22:23:24 +05:30
Natalie Arellano ecef40d8da Add GitHub Actions workflow to check released pack every few days
for dependency updates and CVEs.

This will alert us if the go patch version is out-of-date
or if the buildpacksio/pack image triggers any medium-to-high CVEs using Grype.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-12-15 11:28:47 -05:00
David Freilich 940fd93e6c
Merge pull request #1573 from buildpacks/fix/pin-chocolatey-version
Pin chocolatey action version
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-12-07 16:49:02 +02:00
David Freilich d7ee8d150e Pin chocolatey action version
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-12-07 15:53:10 +02:00
David Freilich b10e41f40b
Merge pull request #1566 from buildpacks/update-lifecycle 2022-12-04 16:42:55 +02:00
Natalie Arellano 33f0aabe6f Bump default lifecycle from 0.15.1 to 0.15.2
This will pick up a small bugfix for builds with image extensions

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-12-02 14:46:25 -05:00
Sambhav Kothari fcf818e30e
Merge pull request #1564 from SaumyaBhushan/Issue#1560
Update our Actions to avoid set-output command
2022-11-29 16:26:05 +00:00
Saumya 3de8207d0f
Update .github/workflows/delivery-archlinux.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:55 +05:30
Saumya b6e92eb547
Update .github/workflows/delivery-archlinux.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:46 +05:30
Saumya d86d1cd031
Update .github/workflows/delivery-archlinux.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:39 +05:30
Saumya 53a7904ba0
Update .github/workflows/delivery-archlinux.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:27 +05:30
Saumya ea3195f717
Update .github/workflows/delivery-archlinux.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:16 +05:30
Saumya 8e8cebabf6
Update .github/workflows/build.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:41:08 +05:30
Saumya b8fb7963aa
Update .github/workflows/build.yml
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com>
2022-11-29 18:40:56 +05:30
SaumyaBhushan 12938d1203 Update our Actions to avoid set-output command
Signed-off-by: SaumyaBhushan <saumya@knoldus.com>
2022-11-29 12:28:24 +05:30
David Freilich 1b10a8c034 Update release-action to use go1.17
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-11-27 17:40:50 +02:00
David Freilich 39e45c53af Fix go.sum
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-11-27 17:03:40 +02:00
David Freilich 65c1eeb1e4
Merge pull request #1552 from buildpacks/dependabot/go_modules/github.com/google/go-containerregistry-0.12.1
build(deps): bump github.com/google/go-containerregistry from 0.11.0 to 0.12.1
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-21 09:17:02 +02:00
dependabot[bot] fd8a8eb37a
build(deps): bump github.com/google/go-containerregistry
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.11.0 to 0.12.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.11.0...v0.12.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 06:55:08 +00:00
David Freilich 833d45e559
Merge pull request #1555 from buildpacks/dependabot/go_modules/golang.org/x/mod-0.7.0
build(deps): bump golang.org/x/mod from 0.6.0 to 0.7.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-21 08:36:07 +02:00
dependabot[bot] 3be567218f
build(deps): bump golang.org/x/mod from 0.6.0 to 0.7.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/mod/releases)
- [Commits](https://github.com/golang/mod/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 06:17:42 +00:00
David Freilich d96bdb3e83
Merge pull request #1556 from buildpacks/dependabot/go_modules/golang.org/x/crypto-0.3.0
build(deps): bump golang.org/x/crypto from 0.1.0 to 0.3.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-21 08:16:18 +02:00
dependabot[bot] 65249388d6
build(deps): bump golang.org/x/crypto from 0.1.0 to 0.3.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.1.0 to 0.3.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.1.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 05:55:15 +00:00
David Freilich 31e7cd184b
Merge pull request #1557 from buildpacks/dependabot/go_modules/golang.org/x/oauth2-0.2.0
build(deps): bump golang.org/x/oauth2 from 0.1.0 to 0.2.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-21 07:53:57 +02:00
dependabot[bot] 1b80d23b24
build(deps): bump golang.org/x/oauth2 from 0.1.0 to 0.2.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-20 18:23:46 +00:00
David Freilich 2c64d8cd4f
Merge pull request #1547 from buildpacks/platform-0.10
Add support for Platform 0.10
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-20 20:22:04 +02:00
David Freilich 6c3de7fac1
Merge branch 'main' into platform-0.10 2022-11-20 20:00:48 +02:00
David Freilich 007306f6b3
Merge pull request #1553 from cgoxo/1540-fix
Added warning and test for lifecycle under which the builder is trusted
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-20 19:44:32 +02:00
cgoxo 7081aa8988 Added suggestions in log message
Signed-off-by: cgoxo <goelchitresh13@gmail.com>
2022-11-18 00:58:20 +05:30
cgoxo 716b3ffc7a Added test for lifecycle under builder is trusted
Signed-off-by: cgoxo <goelchitresh13@gmail.com>

added warning statement at build_test.go file

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

Implemented warning of lifecycle image under trusted builder

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

Modified test for lifecycle-image is provided

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

added command.Execute() to test for builder is trusted and lifecycle image is provided

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

code reduction by adding it.Before()

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

added cfg and command under it.Before()

Signed-off-by: cgoxo <goelchitresh13@gmail.com>

fix linting errors

Signed-off-by: cgoxo <goelchitresh13@gmail.com>
2022-11-17 06:38:19 +05:30
Natalie Arellano 30272c46f5 Fix acceptance: fix cleanup
We can't remove something that wasn't built

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 17:03:23 -05:00
Natalie Arellano 805b72d10d Fix compat: skip extensions test if lifecycle does not support it
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 16:04:52 -05:00
Natalie Arellano cc7c00bf41 Fix acceptance: ensure extensions directory is created with the right perms on Linux
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 15:38:28 -05:00
Natalie Arellano 07eabaf490 Fix compat
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 13:16:08 -05:00
Natalie Arellano d548169af0 Fix acceptance: update fixture sha now that fixture changed
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 13:03:21 -05:00
Natalie Arellano 552f56ab5b Try to fix extension.toml in acceptance
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 12:31:37 -05:00
Natalie Arellano dd35efed0b Fix units: update Windows fixture for Windows test (not Linux)
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 12:17:54 -05:00
Natalie Arellano a919606900 Fix units: lifecycle execution tests should pass when the docker daemon is not running
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-14 11:35:06 -05:00
Natalie Arellano 40221cb9fc Merge branch 'main' into platform-0.10 2022-11-14 10:38:57 -05:00
Joe Kutner 558ae9a3c7
Merge pull request #1478 from buildpacks/extensions-phase-1
`pack builder create` should support extensions
2022-11-14 08:30:47 -06:00
Natalie Arellano 0afadda8f8 Fix lint and import cycle
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-10 16:27:51 -05:00
Natalie Arellano a257564cf8 Add constants for buildpack and extension
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-10 16:03:15 -05:00
Natalie Arellano e3b26100e1 Merge branch 'main' into extensions-phase-1 2022-11-10 15:54:29 -05:00
Natalie Arellano 078a339ea4 Remove platform API information from image info as it's not currently needed
- On platform 0.10, we can't determine the buildpack API so we don't know how to display the process args;
  this should be fixed in platform 0.11

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-10 14:33:54 -05:00
Natalie Arellano b042e7fcdf Update sha for extension fixture
- The sha changed with the removal of *.bat (as Windows is not supported)

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-09 14:55:14 -05:00
Natalie Arellano 4b32779c46 Fix nesting in acceptance_test.go
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-08 17:18:16 -05:00
Natalie Arellano 4600666208 Fix pack inspect for newer platform now that command is an array
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-08 16:59:10 -05:00
Natalie Arellano 8014240fd9 Add support for platform 0.10
- 0.10 is a supported platform and the default lifecycle is 0.15.0
- Run the extender when there are extensions

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-08 16:58:25 -05:00
Sambhav Kothari 8f8cdb3b91
Merge pull request #1542 from buildpacks/fix/few-bugs
Fix a few bugs
2022-11-06 04:55:42 +00:00
Natalie Arellano cf894eda3d Fix a few bugs in lifecycle execution
Fix (restore): when gid is provided, it shouldn't override other flags
Fix (analyze): when cache image is used, flags should not also contain -cache-dir
Fix (restore): when cache image is used, flags should not also contain -cache-dir
- Variable rename (ops for operations)
Fix (restore): provide registry credentials when using a cache image

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-04 12:28:22 -04:00
Natalie Arellano 6f3eab3817 Merge branch 'main' into platform-0.10 2022-11-04 12:28:09 -04:00
Natalie Arellano a675dc3bd1 Fix a few bugs in lifecycle execution
Fix (restore): when gid is provided, it shouldn't override other flags
Fix (analyze): when cache image is used, flags should not also contain -cache-dir
Fix (restore): when cache image is used, flags should not also contain -cache-dir
- Variable rename (ops for operations)
Fix (restore): provide registry credentials when using a cache image

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-04 10:36:17 -04:00
dependabot[bot] 69fd3270b0 build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.18+incompatible to 20.10.21+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.18...v20.10.21)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-04 14:46:05 +02:00
dependabot[bot] 5afb049000 build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.18+incompatible to 20.10.21+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.18...v20.10.21)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-04 11:43:03 +02:00
David Freilich 1ff21c0528
Merge pull request #1535 from buildpacks/dependabot/go_modules/github.com/spf13/cobra-1.6.1
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.1
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-03 23:35:11 +02:00
David Freilich 0140c7d531 Update cobra args to fit with new api
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-11-03 23:13:10 +02:00
dependabot[bot] c022883ee7 build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 23:13:10 +02:00
dependabot[bot] d594747aca build(deps): bump github.com/Microsoft/go-winio from 0.5.2 to 0.6.0
Bumps [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) from 0.5.2 to 0.6.0.
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.5.2...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/Microsoft/go-winio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 22:21:52 +02:00
David Freilich 3d3fd1edf4
Merge pull request #1539 from buildpacks/refactor-lifecycle-execution
Refactor lifecycle execution and tests
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-03 21:56:02 +02:00
Natalie Arellano 03f4c692c2 Fix Windows
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-03 21:33:02 +02:00
Natalie Arellano a1e4be26f5 Try to fix diff
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-03 21:33:02 +02:00
Natalie Arellano 69b8477dcc Refactor lifecycle execution and tests
- Don't pass anything in `l.opts` as function arguments (makes things simpler)
- Remove duplication in tests by moving configurable inputs to top-level vars

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-11-03 21:33:02 +02:00
David Freilich da0992d04c
Merge pull request #1543 from buildpacks/dfreilich-patch-1
Update CODEOWNERS
2022-11-03 21:32:13 +02:00
David Freilich b1835ba9ae
Update CODEOWNERS
Per https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file, this file was malformed. It seems like later matches take precedence, and therefore, `TOC` was the only one allowed to approve PRs, and not the `platform-maintainers` team. This fixes that, defining both teams (`TOC` and `platform-maintainers`) as being allowed to review (with an OR)

Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-11-03 21:31:00 +02:00
Sambhav Kothari 495ef2a4ef
Merge pull request #1521 from jpena-r7/use-arm64-lifecycle-on-arm64
Use arm64 lifecycle for arm64 linux base image
2022-09-29 18:51:07 -04:00
Natalie Arellano 7b7945945d Remove TODO
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-27 13:10:08 -04:00
Natalie Arellano a3e426b037 Rename buildmodule back to buildpack
This will make the diff easier to parse

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-27 12:59:33 -04:00
Jerico Pena 3a29b7b066 Use arm64 lifecycle for arm64 linux base image
Signed-off-by: Jerico Pena <jpena@rapid7.com>
2022-09-27 00:56:17 -04:00
Sambhav Kothari 87ea1d2dd7
Merge branch 'main' into extensions-phase-1 2022-09-22 10:29:44 +01:00
Natalie Arellano c2666c0550 Fix compat
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-21 10:36:25 -04:00
Natalie Arellano 8a62c9e93b Fix Windows expectation
The code changed, so the diff ID changed

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-21 09:45:32 -04:00
Natalie Arellano f24c42bc94 Fix runner IP
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-20 18:23:30 -04:00
Natalie Arellano 77da6ccac1 Fix: ./bin/generate on LCOW should have the correct mod time
- Acceptance test expects different diffIDs for Linux and Windows layers
- Fix compat

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-20 17:45:42 -04:00
Natalie Arellano 4de7a85410 Fix: ./bin/generate on LCOW should have the correct mod time
Acceptance test expects different diffIDs for Linux and Windows layers

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-20 17:08:05 -04:00
Natalie Arellano ae6f47ca7f Adds acceptance test for `pack builder create` with extensions
- Fixes bug when buildpack and extension share the same ID

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-19 15:36:46 -04:00
Terence Lee 2138b9f70d
Merge pull request #1512 from matejvasek/fix-ssh-conn
fix: do not use docker's dilaler if URL contains path
2022-09-16 13:49:29 -05:00
Javier Romero e1a1325134
Merge pull request #1515 from buildpacks/jromero-patch-1
Add TOC to code owners
2022-09-16 11:31:10 -05:00
Javier Romero 2b4dfe0003
Add TOC to code owners
Signed-off-by: Javier Romero <rjavier@vmware.com>

Signed-off-by: Javier Romero <rjavier@vmware.com>
2022-09-16 11:29:54 -05:00
Javier Romero 5ed3681527
Merge pull request #1513 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.14.2
build(deps): bump github.com/buildpacks/lifecycle from 0.14.1 to 0.14.2
2022-09-16 11:25:44 -05:00
Natalie Arellano f2f238f643 Merge branch 'main' into extensions-phase-1 2022-09-16 12:17:55 -04:00
Natalie Arellano 283c03d372 Gate functionality behind 'experimental'
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-16 12:16:05 -04:00
Natalie Arellano 212bbf307b Remove the statement that platform API 0.10 is supported
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-09-16 11:48:55 -04:00
Javier Romero e5fb1dd5e9
Merge pull request #1514 from buildpacks/chmod-umask-test
chmod files before copied into container in case umask is set that doesn't match test
2022-09-16 10:16:24 -05:00
Terence Lee 256910e4d2
chmod files before copied into container in case umask is set that doesn't match test
Signed-off-by: Terence Lee <hone02@gmail.com>
2022-09-16 09:54:17 -05:00
Matej Vasek 1197c2660a
Merge branch 'main' into fix-ssh-conn 2022-09-15 03:05:18 +02:00
dependabot[bot] 02832da094
build(deps): bump github.com/buildpacks/lifecycle from 0.14.1 to 0.14.2
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.14.1...v0.14.2)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 22:19:48 +00:00
Javier Romero 100f656f73
Merge pull request #1497 from imnitishng/cache-flag/bind-cache
cache: Add support for bind cache
2022-09-14 15:19:13 -05:00
Matej Vasek 0ccf63413d fix: not use docker's dilaler if url contains path
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-14 15:35:34 +02:00
Javier Romero 32dabff3ef
Merge branch 'main' into cache-flag/bind-cache 2022-09-13 10:03:59 -05:00
Javier Romero a2941f1022
Merge pull request #1508 from buildpacks/dependabot/go_modules/github.com/docker/cli-20.10.18incompatible
build(deps): bump github.com/docker/cli from 20.10.17+incompatible to 20.10.18+incompatible
2022-09-13 09:49:21 -05:00
Javier Romero c0b32c3560
Merge branch 'main' into cache-flag/bind-cache 2022-09-13 09:44:35 -05:00
Javier Romero b80b0c43a9 Polish: bind cache flag
Changes:
1. Align flag options with RFC 'name' => 'source'
2. Add more detail to 'pack help build'
3. Omit empty 'name' flag option from output

Signed-off-by: Javier Romero <root@jromero.codes>
2022-09-13 09:38:48 -05:00
dependabot[bot] 15e218c9f8
build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.17+incompatible to 20.10.18+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.17...v20.10.18)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-13 13:37:30 +00:00
Javier Romero 0e8a65aa6a
Merge pull request #1509 from buildpacks/dependabot/go_modules/github.com/docker/docker-20.10.18incompatible
build(deps): bump github.com/docker/docker from 20.10.17+incompatible to 20.10.18+incompatible
2022-09-13 08:36:10 -05:00
Javier Romero a4c7b06386
Merge pull request #1510 from matejvasek/update-npipe-lib
chore: change lib handling npipes
2022-09-13 08:35:02 -05:00
Matej Vasek 957115f829 chore: change lib handling npipes
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-10 23:17:00 +02:00
dependabot[bot] 849a8a840a
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.17+incompatible to 20.10.18+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.17...v20.10.18)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 22:24:38 +00:00
Javier Romero 970635e457
Merge branch 'main' into cache-flag/bind-cache 2022-09-09 14:15:08 -05:00
Javier Romero 9a01cfc237
Merge pull request #1504 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.20.2
build(deps): bump github.com/onsi/gomega from 1.20.1 to 1.20.2
2022-09-09 14:14:50 -05:00
Javier Romero 6b954ab5aa
Merge pull request #1506 from sap-contributions/fix-oci-archives-with-relative-paths
Fix crash when loading buildpack from OCI archive with relative paths
2022-09-09 14:14:05 -05:00
David Freilich 26c5e49aa9
Merge pull request #1507 from buildpacks/dependabot/go_modules/github.com/google/go-cmp-0.5.9
build(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-09-09 01:03:44 -04:00
dependabot[bot] 81fc42aa67
build(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.8...v0.5.9)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 22:03:54 +00:00
Nitish Gupta 56d8dc0953 cache: Add support for bind cache
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-09-06 00:19:02 +05:30
Pavel Busko 75a0d6bd88 Fix crash when loading buildpack from OCI archive with relative paths
Signed-off-by: Pavel Busko <pavel.busko@sap.com>
Signed-off-by: Philipp Stehle <philipp.stehle@sap.com>
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
2022-09-02 11:26:11 +02:00
dependabot[bot] 5259bb286d
build(deps): bump github.com/onsi/gomega from 1.20.1 to 1.20.2
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.20.1 to 1.20.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.20.1...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-31 22:08:05 +00:00
Javier Romero 651b9a7462
Merge pull request #1503 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.20.1
build(deps): bump github.com/onsi/gomega from 1.20.0 to 1.20.1
2022-08-29 09:24:53 -05:00
dependabot[bot] fba60179ad
build(deps): bump github.com/onsi/gomega from 1.20.0 to 1.20.1
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.20.0...v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 22:05:11 +00:00
Javier Romero 89aaac413c
Merge pull request #1499 from joshwlewis/add-heroku-builder-22
Add heroku/builder:22 as a suggested and trusted builder
2022-08-24 11:00:07 -07:00
Javier Romero 561bb1f95e
Merge pull request #1502 from buildpacks/dependabot/go_modules/github.com/gdamore/tcell/v2-2.5.3
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.2 to 2.5.3
2022-08-24 10:58:58 -07:00
Sambhav Kothari d56f56a075
Merge pull request #1479 from buildpacks/jkutner/fix-proj-build-env
Fix project.toml build env to match spec
2022-08-24 15:14:19 +01:00
Sambhav Kothari fc05166b7c
Merge branch 'main' into jkutner/fix-proj-build-env 2022-08-24 12:10:49 +01:00
dependabot[bot] d49aa49231
build(deps): bump github.com/gdamore/tcell/v2 from 2.5.2 to 2.5.3
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.2 to 2.5.3.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/master/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.2...v2.5.3)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 22:05:08 +00:00
Javier Romero 2bed9bbb07
Merge pull request #1501 from buildpacks/dependabot/npm_and_yarn/dot-github/workflows/actions/release-notes/actions/core-1.9.1
build(deps): bump @actions/core from 1.2.6 to 1.9.1 in /.github/workflows/actions/release-notes
2022-08-22 10:49:41 -05:00
dependabot[bot] a30bd50bbf
build(deps): bump @actions/core
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:32:53 +00:00
Josh W Lewis 723f5f780f
Add heroku/builder:22 as a suggested and trusted builder
Signed-off-by: Josh W Lewis <josh.lewis@salesforce.com>
2022-08-17 11:45:19 -05:00
Joe Kutner 1c1eb83600
Add a backwards compat test for project.toml v2 env
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2022-08-12 13:52:13 -05:00
Joe Kutner 71021c7b05
Merge branch 'main' into jkutner/fix-proj-build-env 2022-08-12 13:25:20 -05:00
Joe Kutner da8d25b07e
make lint
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2022-08-12 13:24:59 -05:00
Joe Kutner 5c267e5317
Add backwards compatible support for io.buildpacks.build.env in project.toml
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2022-08-12 13:24:22 -05:00
Javier Romero 657521803b
Merge pull request #1444 from imnitishng/13-05-git-source-metadata
Add support to embed source metadata from git
2022-08-11 13:04:21 -05:00
Javier Romero 58c1f5682c Remove old git library version
Signed-off-by: Javier Romero <root@jromero.codes>
2022-08-05 15:44:32 -05:00
Javier Romero 6ce2abedde Merge branch 'main' into 13-05-git-source-metadata
Signed-off-by: Javier Romero <root@jromero.codes>
2022-08-05 14:47:27 -05:00
Javier Romero da32cb843e
Merge pull request #1484 from buildpacks/dependabot/go_modules/github.com/onsi/gomega-1.20.0
Bump github.com/onsi/gomega from 1.19.0 to 1.20.0
2022-08-04 13:38:10 -05:00
dependabot[bot] b8adffec78
Bump github.com/onsi/gomega from 1.19.0 to 1.20.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 20:16:36 +00:00
Javier Romero 78592d5412
Merge branch 'main' into extensions-phase-1 2022-08-03 15:16:29 -05:00
Javier Romero a6f7e916d1
Merge pull request #1485 from buildpacks/dependabot/go_modules/github.com/google/go-containerregistry-0.11.0
Bump github.com/google/go-containerregistry from 0.10.0 to 0.11.0
2022-08-03 14:42:52 -05:00
Javier Romero 0634c3be9e
Merge branch 'main' into dependabot/go_modules/github.com/google/go-containerregistry-0.11.0 2022-08-03 14:22:42 -05:00
Javier Romero c93d42d042
Merge pull request #1483 from buildpacks/dependabot/go_modules/github.com/BurntSushi/toml-1.2.0
Bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0
2022-08-03 14:21:58 -05:00
Javier Romero 163fa52690
Merge branch 'main' into dependabot/go_modules/github.com/BurntSushi/toml-1.2.0 2022-08-02 10:28:10 -05:00
Javier Romero 26455c59f4
Merge pull request #1496 from buildpacks/dependabot/go_modules/github.com/gdamore/tcell/v2-2.5.2
Bump github.com/gdamore/tcell/v2 from 2.5.1 to 2.5.2
2022-08-02 10:26:43 -05:00
Javier Romero fd229dc667
Merge pull request #1494 from buildpacks/windows-wcow-build
Use Windows artifact from WCOW worker
2022-08-02 10:18:42 -05:00
dependabot[bot] 1bcf987848
Bump github.com/gdamore/tcell/v2 from 2.5.1 to 2.5.2
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/master/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.1...v2.5.2)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 22:12:58 +00:00
Javier Romero d5f587a78d
Merge pull request #1495 from vringar/patch-1
Change Slack link in README to CNCF slack
2022-08-01 10:23:04 -05:00
Stefan Zabka 21140bd97c
Change Slack link in README to CNCF slack
Signed-off-by: Stefan Zabka <stefan.zabka@camunda.com>
2022-08-01 13:19:54 +02:00
Natalie Arellano f763546c9f Use Windows artifact from WCOW worker
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-29 11:45:27 -04:00
Javier Romero ab92e1096b
Merge pull request #1491 from buildpacks/windows-wcow
Updates windows-wcow runner to be GitHub-hosted vs self-hosted
2022-07-28 19:23:11 -05:00
Javier Romero de39959f51
Merge branch 'main' into windows-wcow 2022-07-27 10:35:13 -05:00
Javier Romero 7ff6918d0d
Merge pull request #1490 from imnitishng/cache-flag/build-volume-cache
Add 'volume' cache format support for --cache flag
2022-07-27 10:28:13 -05:00
Natalie Arellano 4fc0140ecf Fixes for SSH dialer test
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-27 10:49:41 -04:00
Natalie Arellano 6f37234c86 Updates windows-wcow runner to be GitHub-hosted vs self-hosted
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-26 12:49:34 -04:00
Natalie Arellano 93d606ae17 Fix lint
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-25 14:37:11 -04:00
Natalie Arellano 87c0e65d4e Remove unused extractExtensions function
This can be added back and tested as part of https://github.com/buildpacks/pack/issues/1489

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-25 14:29:33 -04:00
Natalie Arellano 9585772fb7 Fix formatting and comment
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-25 13:57:54 -04:00
Natalie Arellano c238bfd17c Add tests
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-25 13:55:05 -04:00
Natalie Arellano ac6e0af445 Ensure optional isn't redundantly printed for extensions
Also remove deprecated strings.Title

Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-25 12:57:24 -04:00
Nitish Gupta 1eb52c0bc0 tests: Add tests for `--cache` flag using volume cache format
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-07-24 12:41:34 +05:30
Nitish Gupta 397c959c21 flags: Add support for 'volume' cache format using `--cache` flag
- Extend support for `--cache` flag to volume cache format for both
  build and launch cache types

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-07-23 11:44:50 +05:30
Natalie Arellano 1e290bc992 Update TODO
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 16:33:09 -04:00
Natalie Arellano 3f152ca6f5 Add more tests
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 16:08:42 -04:00
Natalie Arellano 1c46699904 Fix assertion for supported platform apis
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 15:16:47 -04:00
Natalie Arellano 4611b0cf4e Make functions private that are not used outside the package
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 15:13:02 -04:00
Natalie Arellano 5119e4b562 Merge branch 'main' into extensions-phase-1 2022-07-22 14:56:51 -04:00
Natalie Arellano bd37213af3 Try to make BuildModule interface methods less awkward
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 14:55:32 -04:00
Natalie Arellano 7183710be8 Rename pkg/buildpack to pkg/buildmodule
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 14:55:24 -04:00
Natalie Arellano 4355e23daf Rename buildpack -> thing
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 14:22:52 -04:00
Natalie Arellano 5a15d01758 Rename some things
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 12:03:16 -04:00
Natalie Arellano a14a6cddec Add unit tests for builder.Builder
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 11:55:13 -04:00
Natalie Arellano d4072a78d7 Rename some things
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-22 11:07:21 -04:00
dependabot[bot] 6e94f6df40
Bump github.com/google/go-containerregistry from 0.10.0 to 0.11.0
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 22:14:10 +00:00
dependabot[bot] c44d791b67
Bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 22:13:49 +00:00
Natalie Arellano 9c06a20175 Declare support for platform 0.10 (even though there is nothing to do)
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 16:11:35 -04:00
Natalie Arellano 476fc50aa5 Rename BuildpackInfo to ModuleInfo
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 13:21:11 -04:00
Natalie Arellano 41bb4c88e0 Add order for extensions to /cnb/order.toml
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 13:19:02 -04:00
Natalie Arellano c393817c56 Add validation for extensions
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 12:31:47 -04:00
Natalie Arellano cfca6da920 Rename Buildpack interface to BuildModule
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 12:14:59 -04:00
Natalie Arellano 740877973e Unpend pended tests
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-15 12:03:37 -04:00
Javier Romero 30de289455
Merge pull request #1477 from imnitishng/cache-flag/build-image-cache
flags: Add `--cache` flag for build cache as image
2022-07-12 09:58:06 -05:00
Natalie Arellano dda70c25c9 Remove [[stacks]] in extension.toml
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-07 14:08:04 -04:00
Natalie Arellano 85ea96ed96 Separate structs for BuildpackDescriptor and ExtensionDescriptor
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-07 14:01:11 -04:00
Natalie Arellano 48b6c4fed1 WIP: pack builder create "works"
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-06 16:53:12 -04:00
Nitish Gupta c1deb54451 flags: Move cache flag constants to enums and update tests
- Gate acceptance tests to work only when pack supports `--cache`
- string constants for cache type and cache format has been moved to enums
- Fix test cases, update acceptance test helper methods
- Add new unit tests

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-07-07 01:47:55 +05:30
Joe Kutner f7b834cd1e
Fix project.toml build env to match spec
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2022-07-06 10:30:58 -05:00
Nitish Gupta 7d267bcc69 tests: Add tests for build cache as image using cache flags
- Add unit and acceptance tests

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-07-06 13:55:46 +05:30
Nitish Gupta 6504e87311 flags: Add `--cache` flag for build cache as image
- Add `flag` definition
- Integrate flag options with image cache
- Add tests for flag options

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-07-06 13:55:46 +05:30
Natalie Arellano 7798d96490 WIP
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-07-05 14:23:29 -04:00
David Freilich c1e75c213f
Merge pull request #1462 from buildpacks/dependabot/go_modules/github.com/spf13/cobra-1.5.0
Bump github.com/spf13/cobra from 1.4.0 to 1.5.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-07-04 12:56:43 +03:00
dependabot[bot] 619d887c24
Bump github.com/spf13/cobra from 1.4.0 to 1.5.0
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 09:42:03 +00:00
David Freilich d9f45430e3
Merge pull request #1449 from buildpacks/dependabot/go_modules/github.com/docker/cli-20.10.17incompatible
Bump github.com/docker/cli from 20.10.16+incompatible to 20.10.17+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-07-04 12:40:17 +03:00
dependabot[bot] 97dfe249e4
Bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.16+incompatible to 20.10.17+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.16...v20.10.17)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 08:56:05 +00:00
David Freilich 7d91fe2537
Merge pull request #1450 from buildpacks/dependabot/go_modules/github.com/docker/docker-20.10.17incompatible
Bump github.com/docker/docker from 20.10.16+incompatible to 20.10.17+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-07-04 11:54:54 +03:00
dependabot[bot] aa028428c1
Bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.16+incompatible to 20.10.17+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.16...v20.10.17)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 08:32:01 +00:00
David Freilich 437167ebbe
Merge pull request #1464 from buildpacks/dependabot/go_modules/github.com/google/go-containerregistry-0.10.0
Bump github.com/google/go-containerregistry from 0.9.0 to 0.10.0
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-07-04 11:30:27 +03:00
dependabot[bot] d960e3bf1c
Bump github.com/google/go-containerregistry from 0.9.0 to 0.10.0
Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 08:08:12 +00:00
David Freilich d8274016ba
Merge pull request #1476 from buildpacks/jkutner/default-new-bp-api
Update default new buildpack API to 0.8
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-07-04 11:06:17 +03:00
Joe Kutner b62edee026
Merge branch 'main' into jkutner/default-new-bp-api 2022-06-30 10:11:30 -05:00
Joe Kutner d014f724a6
Update default new buildpack API to 0.8
Signed-off-by: Joe Kutner <jpkutner@gmail.com>
2022-06-30 10:10:23 -05:00
Javier Romero 21a3f40d2b
Merge pull request #1466 from buildpacks/fix/ci-ubuntu
CI: Fix: Prevent being asked for tzdata
2022-06-23 12:59:53 -05:00
Javier Romero ac204b5876 CI: Fix: Prevent being asked for tzdata
See: https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai

Signed-off-by: Javier Romero <rjavier@vmware.com>
2022-06-23 12:58:04 -05:00
Javier Romero 1e535cc2f7
Merge pull request #1465 from buildpacks/fix/ci-ubuntu
CI: Fix typo on maintainer email
2022-06-23 09:58:05 -05:00
Javier Romero e42db4a4f1 CI: Fix typo on maintainer email
Signed-off-by: Javier Romero <rjavier@vmware.com>
2022-06-23 09:57:11 -05:00
github-bot db1db6f9cf Merge remote-tracking branch 'origin/release/0.27.0' 2022-06-22 20:05:52 +00:00
Javier Romero f4f5be11ba Minor improvements to release notes
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-22 15:05:31 -05:00
Javier Romero 278a3549d3
Merge pull request #1456 from buildpacks/delivery-ubuntu-improvements
Delivery ubuntu improvements
2022-06-22 07:30:35 -05:00
Javier Romero 2656316323 Simplify pipeline
Signed-off-by: Javier Romero <rjavier@vmware.com>
2022-06-21 16:48:31 -05:00
Javier Romero 919c5c43ed CI: Fix typo
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-14 14:51:49 -05:00
Javier Romero 3e1326f4cf CI: Fix golang path
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-14 14:44:09 -05:00
Javier Romero 72fbc5a5eb CI: Ubuntu Delivery: Replace xenial with jammy
Resolves #1412
Resolves #1455

Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-14 09:52:05 -05:00
Javier Romero 69e612d32f Updated minimum version of go to 1.16 due to required pacakge 'io/fs'
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-13 17:25:34 -05:00
Javier Romero c210b6eba6
Merge pull request #1452 from buildpacks/update-release-notes
Minor improvements to release notes
2022-06-09 08:06:30 -05:00
Javier Romero 2c8e73548f
Merge pull request #1451 from joshwlewis/heroku-stack-image-change
Change suggested heroku stack images to the new url
2022-06-08 21:48:28 -05:00
Josh W Lewis f18ae227f2
Change suggested heroku stack images to new url
Signed-off-by: Josh W Lewis <josh.lewis@salesforce.com>
2022-06-08 11:24:31 -05:00
Javier Romero 67f273229b Minor improvements to release notes
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-08 10:48:24 -05:00
Javier Romero 1c191ac759
Merge pull request #1437 from imnitishng/05-05-bp-order-missing
Update error when bp order group is malformed for meta-buildpacks
2022-06-07 16:04:35 -05:00
Nitish Gupta d9b834ef27 Update error when bp order group is malformed for meta-buildpacks
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-06-08 00:00:25 +05:30
Javier Romero 1e6ba9c4f1
Merge pull request #1448 from buildpacks/dependabot/go_modules/github.com/buildpacks/lifecycle-0.14.1
Bump github.com/buildpacks/lifecycle from 0.14.0 to 0.14.1
2022-06-03 16:38:29 -05:00
Javier Romero e4bd47a3f5
Merge branch 'main' into dependabot/go_modules/github.com/buildpacks/lifecycle-0.14.1 2022-06-03 16:25:34 -05:00
Javier Romero b125bfde74 Replace use of deprecated method usage
Signed-off-by: Javier Romero <root@jromero.codes>
2022-06-03 16:24:31 -05:00
Javier Romero ecfab2030f
Merge pull request #1434 from buildpacks/dependabot/github_actions/docker/login-action-2
Bump docker/login-action from 1 to 2
2022-06-03 15:54:21 -05:00
Javier Romero 977cc386b9
Merge pull request #1447 from buildpacks/dependabot/github_actions/crazy-max/ghaction-chocolatey-2
Bump crazy-max/ghaction-chocolatey from 1 to 2
2022-06-03 15:51:11 -05:00
Javier Romero 28da10b94b
Merge pull request #1417 from buildpacks/new-analyzer-args
When platform api >= 0.9, analyzer accepts -skip-layers and -launch-cache
2022-06-03 15:21:11 -05:00
Natalie Arellano 28e5691257 Bump default lifecycle
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-06-03 10:46:16 -04:00
Natalie Arellano 3d6c1177cc
Merge branch 'main' into new-analyzer-args 2022-06-03 10:16:27 -04:00
dependabot[bot] 3769fd9afe
Bump github.com/buildpacks/lifecycle from 0.14.0 to 0.14.1
Bumps [github.com/buildpacks/lifecycle](https://github.com/buildpacks/lifecycle) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/buildpacks/lifecycle/releases)
- [Changelog](https://github.com/buildpacks/lifecycle/blob/main/RELEASE.md)
- [Commits](https://github.com/buildpacks/lifecycle/compare/v0.14.0...v0.14.1)

---
updated-dependencies:
- dependency-name: github.com/buildpacks/lifecycle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 22:52:04 +00:00
dependabot[bot] 20ee4a0722
Bump crazy-max/ghaction-chocolatey from 1 to 2
Bumps [crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey) from 1 to 2.
- [Release notes](https://github.com/crazy-max/ghaction-chocolatey/releases)
- [Changelog](https://github.com/crazy-max/ghaction-chocolatey/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-chocolatey/compare/v1...v2)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-chocolatey
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 22:04:29 +00:00
Nitish Gupta 032e9e782b chore: Proper error handling, move files and add few unit tests
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-25 23:34:49 +05:30
Nitish Gupta 073f3ead56 metadata: Update git describe logic for multiple branches
- Add ability to parse tags if they exist in multiple branches
- Add test cases to cover possible branching and tag scenarios
- Add new util method and tests

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
Nitish Gupta 927da530a7 tests: Add tests for parsing refs and remote URL
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
Nitish Gupta e75def3145 metadata: Add support for `remote`
- Add support to fetch and save the origin remote URL of a git repo

Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
Nitish Gupta 93c0f3b583 tests: Update tests and dependencies
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
Nitish Gupta 4ea4993c9d tests: Add partial unit tests for source metadata from git
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
Nitish Gupta dd422a5184 metadata: Initial implementation for source metadata from git repo
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
2022-05-23 14:18:36 +05:30
dependabot[bot] eca109544c
Bump docker/login-action from 1 to 2
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 09:36:33 +00:00
David Freilich 98698c4a3b
Merge pull request #1441 from buildpacks/dependabot/go_modules/github.com/docker/docker-20.10.16incompatible
Bump github.com/docker/docker from 20.10.14+incompatible to 20.10.16+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-05-18 12:32:16 +03:00
dependabot[bot] 6f6bbff771
Bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.14+incompatible to 20.10.16+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.14...v20.10.16)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-18 09:17:22 +00:00
David Freilich 04fd1c64af
Merge pull request #1442 from buildpacks/dependabot/go_modules/github.com/docker/cli-20.10.16incompatible
Bump github.com/docker/cli from 20.10.14+incompatible to 20.10.16+incompatible
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-05-18 12:16:19 +03:00
dependabot[bot] b781ccefc7
Bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli) from 20.10.14+incompatible to 20.10.16+incompatible.
- [Release notes](https://github.com/docker/cli/releases)
- [Commits](https://github.com/docker/cli/compare/v20.10.14...v20.10.16)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-12 22:04:50 +00:00
Javier Romero be2bd9af39
Merge branch 'main' into new-analyzer-args 2022-05-09 14:56:02 -06:00
David Freilich bed572e31a
Merge pull request #1438 from buildpacks/fix-docker-release
Fix docker & archlinuex release pipelines
Signed-off-by: David Freilich <freilich.david@gmail.com>
2022-05-08 18:14:22 +03:00
David Freilich e2846737fe Fix archlinux issue
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-05-08 18:09:57 +03:00
David Freilich 9200f1eef7 Remove project.toml, and set it to be ok anyways
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
2022-05-08 18:02:51 +03:00
Javier Romero f7c167df28
Merge pull request #1433 from buildpacks/sanitize-system-envs
When pack is run with --verbose, it should not print registry creds
2022-05-05 16:00:45 -05:00
Natalie Arellano 0385092d42 When pack is run with --verbose, it should not print registry creds
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-05-05 11:18:43 -04:00
Natalie Arellano 4fb5ba7d91 When platform api >= 0.9, analyzer accepts -skip-layers and -launch-cache
Signed-off-by: Natalie Arellano <narellano@vmware.com>
2022-04-11 14:46:57 -04:00
604 changed files with 40225 additions and 10837 deletions

View File

@ -4,8 +4,13 @@ updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
interval: "weekly"
groups:
# Group all minor/patch go dependencies into a single PR.
go-dependencies:
update-types:
- "minor"
- "patch"
labels:
- "dependencies"
- "go"
@ -15,8 +20,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
interval: "weekly"
labels:
- "dependencies"
- "github_actions"

View File

@ -15,5 +15,5 @@ outputs:
contents:
description: The contents of the release notes.
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,349 @@
{
"name": "release-notes",
"version": "1.0.0",
"lockfileVersion": 1,
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "release-notes",
"version": "1.0.0",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^4.0.0",
"@octokit/rest": "^18.0.0",
"yaml": "^1.10.0"
},
"devDependencies": {
"@vercel/ncc": "^0.24.1"
}
},
"node_modules/@actions/core": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
"dependencies": {
"@actions/http-client": "^2.0.1",
"uuid": "^8.3.2"
}
},
"node_modules/@actions/core/node_modules/@actions/http-client": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
"dependencies": {
"tunnel": "^0.0.6"
}
},
"node_modules/@actions/github": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@actions/github/-/github-4.0.0.tgz",
"integrity": "sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==",
"dependencies": {
"@actions/http-client": "^1.0.8",
"@octokit/core": "^3.0.0",
"@octokit/plugin-paginate-rest": "^2.2.3",
"@octokit/plugin-rest-endpoint-methods": "^4.0.0"
}
},
"node_modules/@actions/http-client": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.8.tgz",
"integrity": "sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==",
"dependencies": {
"tunnel": "0.0.6"
}
},
"node_modules/@octokit/auth-token": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz",
"integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==",
"dependencies": {
"@octokit/types": "^6.0.3"
}
},
"node_modules/@octokit/auth-token/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/core": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"dependencies": {
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
"@octokit/request": "^5.6.3",
"@octokit/request-error": "^2.0.5",
"@octokit/types": "^6.0.3",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
}
},
"node_modules/@octokit/core/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/endpoint": {
"version": "6.0.12",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
"integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==",
"dependencies": {
"@octokit/types": "^6.0.3",
"is-plain-object": "^5.0.0",
"universal-user-agent": "^6.0.0"
}
},
"node_modules/@octokit/endpoint/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/graphql": {
"version": "4.8.0",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz",
"integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==",
"dependencies": {
"@octokit/request": "^5.6.0",
"@octokit/types": "^6.0.3",
"universal-user-agent": "^6.0.0"
}
},
"node_modules/@octokit/graphql/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/openapi-types": {
"version": "12.11.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
"integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="
},
"node_modules/@octokit/plugin-paginate-rest": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.2.3.tgz",
"integrity": "sha512-eKTs91wXnJH8Yicwa30jz6DF50kAh7vkcqCQ9D7/tvBAP5KKkg6I2nNof8Mp/65G0Arjsb4QcOJcIEQY+rK1Rg==",
"dependencies": {
"@octokit/types": "^5.0.0"
}
},
"node_modules/@octokit/plugin-request-log": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz",
"integrity": "sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw=="
},
"node_modules/@octokit/plugin-rest-endpoint-methods": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.0.0.tgz",
"integrity": "sha512-emS6gysz4E9BNi9IrCl7Pm4kR+Az3MmVB0/DoDCmF4U48NbYG3weKyDlgkrz6Jbl4Mu4nDx8YWZwC4HjoTdcCA==",
"dependencies": {
"@octokit/types": "^5.0.0",
"deprecation": "^2.3.1"
}
},
"node_modules/@octokit/request": {
"version": "5.6.3",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz",
"integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==",
"dependencies": {
"@octokit/endpoint": "^6.0.1",
"@octokit/request-error": "^2.1.0",
"@octokit/types": "^6.16.1",
"is-plain-object": "^5.0.0",
"node-fetch": "^2.6.7",
"universal-user-agent": "^6.0.0"
}
},
"node_modules/@octokit/request-error": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
"integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
"dependencies": {
"@octokit/types": "^6.0.3",
"deprecation": "^2.0.0",
"once": "^1.4.0"
}
},
"node_modules/@octokit/request-error/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/request/node_modules/@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"dependencies": {
"@octokit/openapi-types": "^12.11.0"
}
},
"node_modules/@octokit/rest": {
"version": "18.0.0",
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.0.0.tgz",
"integrity": "sha512-4G/a42lry9NFGuuECnua1R1eoKkdBYJap97jYbWDNYBOUboWcM75GJ1VIcfvwDV/pW0lMPs7CEmhHoVrSV5shg==",
"dependencies": {
"@octokit/core": "^3.0.0",
"@octokit/plugin-paginate-rest": "^2.2.0",
"@octokit/plugin-request-log": "^1.0.0",
"@octokit/plugin-rest-endpoint-methods": "4.0.0"
}
},
"node_modules/@octokit/types": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-5.0.1.tgz",
"integrity": "sha512-GorvORVwp244fGKEt3cgt/P+M0MGy4xEDbckw+K5ojEezxyMDgCaYPKVct+/eWQfZXOT7uq0xRpmrl/+hliabA==",
"dependencies": {
"@types/node": ">= 8"
}
},
"node_modules/@types/node": {
"version": "14.0.19",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.19.tgz",
"integrity": "sha512-yf3BP/NIXF37BjrK5klu//asUWitOEoUP5xE1mhSUjazotwJ/eJDgEmMQNlOeWOVv72j24QQ+3bqXHE++CFGag=="
},
"node_modules/@vercel/ncc": {
"version": "0.24.1",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.24.1.tgz",
"integrity": "sha512-r9m7brz2hNmq5TF3sxrK4qR/FhXn44XIMglQUir4sT7Sh5GOaYXlMYikHFwJStf8rmQGTlvOoBXt4yHVonRG8A==",
"dev": true,
"bin": {
"ncc": "dist/ncc/cli.js"
}
},
"node_modules/before-after-hook": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
},
"node_modules/deprecation": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
},
"node_modules/is-plain-object": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/node-fetch": {
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz",
"integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"dependencies": {
"wrappy": "1"
}
},
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
},
"node_modules/universal-user-agent": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
},
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"node_modules/yaml": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz",
"integrity": "sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==",
"engines": {
"node": ">= 6"
}
}
},
"dependencies": {
"@actions/core": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz",
"integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA=="
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
"requires": {
"@actions/http-client": "^2.0.1",
"uuid": "^8.3.2"
},
"dependencies": {
"@actions/http-client": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
"requires": {
"tunnel": "^0.0.6"
}
}
}
},
"@actions/github": {
"version": "4.0.0",
@ -29,46 +365,92 @@
}
},
"@octokit/auth-token": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.2.tgz",
"integrity": "sha512-jE/lE/IKIz2v1+/P0u4fJqv0kYwXOTujKemJMFr6FeopsxlIK3+wKDCJGnysg81XID5TgZQbIfuJ5J0lnTiuyQ==",
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz",
"integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==",
"requires": {
"@octokit/types": "^5.0.0"
"@octokit/types": "^6.0.3"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/core": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.1.0.tgz",
"integrity": "sha512-yPyQSmxIXLieEIRikk2w8AEtWkFdfG/LXcw1KvEtK3iP0ENZLW/WYQmdzOKqfSaLhooz4CJ9D+WY79C8ZliACw==",
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"requires": {
"@octokit/auth-token": "^2.4.0",
"@octokit/graphql": "^4.3.1",
"@octokit/request": "^5.4.0",
"@octokit/types": "^5.0.0",
"before-after-hook": "^2.1.0",
"universal-user-agent": "^5.0.0"
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
"@octokit/request": "^5.6.3",
"@octokit/request-error": "^2.0.5",
"@octokit/types": "^6.0.3",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/endpoint": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.3.tgz",
"integrity": "sha512-Y900+r0gIz+cWp6ytnkibbD95ucEzDSKzlEnaWS52hbCDNcCJYO5mRmWW7HRAnDc7am+N/5Lnd8MppSaTYx1Yg==",
"version": "6.0.12",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz",
"integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==",
"requires": {
"@octokit/types": "^5.0.0",
"is-plain-object": "^3.0.0",
"universal-user-agent": "^5.0.0"
"@octokit/types": "^6.0.3",
"is-plain-object": "^5.0.0",
"universal-user-agent": "^6.0.0"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/graphql": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.5.1.tgz",
"integrity": "sha512-qgMsROG9K2KxDs12CO3bySJaYoUu2aic90qpFrv7A8sEBzZ7UFGvdgPKiLw5gOPYEYbS0Xf8Tvf84tJutHPulQ==",
"version": "4.8.0",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz",
"integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==",
"requires": {
"@octokit/request": "^5.3.0",
"@octokit/types": "^5.0.0",
"universal-user-agent": "^5.0.0"
"@octokit/request": "^5.6.0",
"@octokit/types": "^6.0.3",
"universal-user-agent": "^6.0.0"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/openapi-types": {
"version": "12.11.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
"integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="
},
"@octokit/plugin-paginate-rest": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.2.3.tgz",
@ -92,28 +474,46 @@
}
},
"@octokit/request": {
"version": "5.4.5",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.5.tgz",
"integrity": "sha512-atAs5GAGbZedvJXXdjtKljin+e2SltEs48B3naJjqWupYl2IUBbB/CJisyjbNHcKpHzb3E+OYEZ46G8eakXgQg==",
"version": "5.6.3",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz",
"integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==",
"requires": {
"@octokit/endpoint": "^6.0.1",
"@octokit/request-error": "^2.0.0",
"@octokit/types": "^5.0.0",
"deprecation": "^2.0.0",
"is-plain-object": "^3.0.0",
"node-fetch": "^2.3.0",
"once": "^1.4.0",
"universal-user-agent": "^5.0.0"
"@octokit/request-error": "^2.1.0",
"@octokit/types": "^6.16.1",
"is-plain-object": "^5.0.0",
"node-fetch": "^2.6.7",
"universal-user-agent": "^6.0.0"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/request-error": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.2.tgz",
"integrity": "sha512-2BrmnvVSV1MXQvEkrb9zwzP0wXFNbPJij922kYBTLIlIafukrGOb+ABBT2+c6wZiuyWDH1K1zmjGQ0toN/wMWw==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz",
"integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==",
"requires": {
"@octokit/types": "^5.0.1",
"@octokit/types": "^6.0.3",
"deprecation": "^2.0.0",
"once": "^1.4.0"
},
"dependencies": {
"@octokit/types": {
"version": "6.41.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
"integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
"requires": {
"@octokit/openapi-types": "^12.11.0"
}
}
}
},
"@octokit/rest": {
@ -147,166 +547,40 @@
"dev": true
},
"before-after-hook": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz",
"integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A=="
},
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"requires": {
"nice-try": "^1.0.4",
"path-key": "^2.0.1",
"semver": "^5.5.0",
"shebang-command": "^1.2.0",
"which": "^1.2.9"
}
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
},
"deprecation": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
},
"end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"requires": {
"once": "^1.4.0"
}
},
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
"integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
"requires": {
"cross-spawn": "^6.0.0",
"get-stream": "^4.0.0",
"is-stream": "^1.1.0",
"npm-run-path": "^2.0.0",
"p-finally": "^1.0.0",
"signal-exit": "^3.0.0",
"strip-eof": "^1.0.0"
}
},
"get-stream": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
"integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
"requires": {
"pump": "^3.0.0"
}
},
"is-plain-object": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz",
"integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g=="
},
"is-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
},
"isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
},
"macos-release": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.0.tgz",
"integrity": "sha512-ko6deozZYiAkqa/0gmcsz+p4jSy3gY7/ZsCEokPaYd8k+6/aXGkiTgr61+Owup7Sf+xjqW8u2ElhoM9SEcEfuA=="
},
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q=="
},
"node-fetch": {
"version": "2.6.7",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
"integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz",
"integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==",
"requires": {
"whatwg-url": "^5.0.0"
}
},
"npm-run-path": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"requires": {
"path-key": "^2.0.0"
}
},
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"requires": {
"wrappy": "1"
}
},
"os-name": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz",
"integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==",
"requires": {
"macos-release": "^2.2.0",
"windows-release": "^3.1.0"
}
},
"p-finally": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4="
},
"path-key": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
},
"pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"requires": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
}
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
},
"shebang-command": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"requires": {
"shebang-regex": "^1.0.0"
}
},
"shebang-regex": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
},
"signal-exit": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
"integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
},
"strip-eof": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
"integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
},
"tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"tunnel": {
"version": "0.0.6",
@ -314,47 +588,33 @@
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"universal-user-agent": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-5.0.0.tgz",
"integrity": "sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q==",
"requires": {
"os-name": "^3.1.0"
}
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz",
"integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w=="
},
"uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
},
"webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"requires": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"which": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"requires": {
"isexe": "^2.0.0"
}
},
"windows-release": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.1.tgz",
"integrity": "sha512-Pngk/RDCaI/DkuHPlGTdIkDiTAnAkyMjoQMZqRsxydNl1qGXNIoZrB7RK8g53F2tEgQBMqQJHQdYZuQEEAu54A==",
"requires": {
"execa": "^1.0.0"
}
},
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"yaml": {
"version": "1.10.0",

View File

@ -6,7 +6,7 @@
"build": "ncc build action.js -o dist/"
},
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/core": "^1.10.0",
"@actions/github": "^4.0.0",
"@octokit/rest": "^18.0.0",
"yaml": "^1.10.0"

46
.github/workflows/benchmark.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: benchmark
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Go benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v5
with:
go-version: 1.24
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
- name: Run benchmark
run: |
git clone https://github.com/buildpacks/samples.git
mkdir out || (exit 0)
go test -bench=. -benchtime=1s ./benchmarks/... -tags=benchmarks | tee ./out/benchmark.txt
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Go Benchmark
tool: 'go'
output-file-path: ./out/benchmark.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@buildpacks/platform-maintainers'

View File

@ -20,10 +20,11 @@ jobs:
strategy:
fail-fast: false
matrix:
config: [macos, linux, windows-lcow, windows-wcow]
config: [macos, linux, windows-lcow]
include:
- config: macos
os: macos
# since macos-14 the latest runner is arm64
os: macos-arm64
runner: macos-latest
no_docker: "true"
pack_bin: pack
@ -37,11 +38,6 @@ jobs:
runner: [self-hosted, windows, lcow]
no_docker: "false"
pack_bin: pack.exe
- config: windows-wcow
os: windows
runner: [self-hosted, windows, wcow]
no_docker: "false"
pack_bin: pack.exe
runs-on: ${{ matrix.runner }}
env:
PACK_BIN: ${{ matrix.pack_bin }}
@ -53,7 +49,7 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.symlinks true
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Derive pack version from branch name Unix
if: runner.os != 'Windows'
run: |
@ -72,9 +68,10 @@ jobs:
}
shell: powershell
- name: Set up go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.17'
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env for Unix
if: runner.os != 'Windows'
run: |
@ -92,17 +89,19 @@ jobs:
- name: Test
env:
TEST_COVERAGE: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./out/tests/coverage-unit.txt
flags: unit,os_${{ matrix.os }}
fail_ci_if_error: true
fail_ci_if_error: false
verbose: true
- name: Prepare Codecov
if: matrix.os == 'windows'
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install codecov -y
- name: run Codecov
@ -123,8 +122,7 @@ jobs:
env:
PACK_BUILD: ${{ github.run_number }}
shell: powershell
- uses: actions/upload-artifact@v3
if: matrix.config != 'windows-wcow'
- uses: actions/upload-artifact@v4
with:
name: pack-${{ matrix.os }}
path: out/${{ env.PACK_BIN }}
@ -137,25 +135,32 @@ jobs:
- name: linux-arm64
goarch: arm64
goos: linux
- name: macos-arm64
goarch: arm64
- name: macos
# since macos-14 default runner is arm, we need to build for intel architecture later
goarch: amd64
goos: darwin
- name: linux-s390x
goarch: s390x
goos: linux
- name: linux-ppc64le
goarch: ppc64le
goos: linux
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
stable: false
go-version: '1.16.2'
check-latest: true
go-version-file: 'go.mod'
- name: Build
run: |
[[ $GITHUB_REF =~ ^refs\/heads\/release/(.*)$ ]] && version=${BASH_REMATCH[1]} || version=0.0.0
env PACK_VERSION=${version} GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }} make build
env:
PACK_BUILD: ${{ github.run_number }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pack-${{ matrix.name }}
path: out/${{ env.PACK_BIN }}
@ -164,7 +169,7 @@ jobs:
needs: build-additional-archs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Derive pack version from branch name
shell: bash
run: |
@ -184,7 +189,7 @@ jobs:
echo "PACK_MILESTONE=${milestone}" >> $GITHUB_ENV
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Package artifacts - macos
run: |
chmod +x pack-macos/pack
@ -197,6 +202,18 @@ jobs:
filename=pack-v${{ env.PACK_VERSION }}-linux-arm64.tgz
tar -C pack-linux-arm64 -vzcf $filename pack
shasum -a 256 $filename > $filename.sha256
- name: Package artifacts - linux-s390x
run: |
chmod +x pack-linux-s390x/pack
filename=pack-v${{ env.PACK_VERSION }}-linux-s390x.tgz
tar -C pack-linux-s390x -vzcf $filename pack
shasum -a 256 $filename > $filename.sha256
- name: Package artifacts - linux-ppc64le
run: |
chmod +x pack-linux-ppc64le/pack
filename=pack-v${{ env.PACK_VERSION }}-linux-ppc64le.tgz
tar -C pack-linux-ppc64le -vzcf $filename pack
shasum -a 256 $filename > $filename.sha256
- name: Package artifacts - macos-arm64
run: |
chmod +x pack-macos-arm64/pack
@ -218,17 +235,16 @@ jobs:
id: lifecycle_version
run: |
LIFECYCLE_VERSION=$(./pack-linux/pack report | grep 'Default Lifecycle Version:' | grep -o '[^ ]*$')
echo "::set-output name=version::$LIFECYCLE_VERSION"
echo "version=$LIFECYCLE_VERSION" >> $GITHUB_OUTPUT
- name: Extract pack help
id: pack_help
# Replacements have to do with multiline output.
# See https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/m-p/38372/highlight/true#M3322
# Multiline output use a syntax similar to heredocs.
# see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
run: |
PACK_HELP=$(./pack-linux/pack --help)
PACK_HELP="${PACK_HELP//'%'/'%25'}"
PACK_HELP="${PACK_HELP//$'\n'/'%0A'}"
PACK_HELP="${PACK_HELP//$'\r'/'%0D'}"
echo "::set-output name=help::$PACK_HELP"
DELIMITER="$(uuidgen)"
echo "help<<${DELIMITER}" >> $GITHUB_OUTPUT
./pack-linux/pack --help >> $GITHUB_OUTPUT
echo "${DELIMITER}" >> $GITHUB_OUTPUT
- name: Generate changelog
uses: ./.github/workflows/actions/release-notes
id: changelog
@ -237,7 +253,7 @@ jobs:
milestone: ${{ env.PACK_MILESTONE }}
- name: Create Pre-Release
if: ${{ env.PACK_VERSION != env.PACK_MILESTONE }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
@ -248,23 +264,50 @@ jobs:
prerelease: true
files: pack-v${{ env.PACK_VERSION }}-*
body: |
# pack v${{ env.PACK_VERSION }}
> This is a **beta** pre-release of the Cloud Native Buildpack local CLI. This platform implementation should be relatively stable and reliable, but breaking changes in the underlying [specification](https://github.com/buildpack/spec) may be implemented without notice. Note that pack is intended for local image builds, and thus requires a Docker daemon. The [lifecycle](https://github.com/buildpack/lifecycle) should be used directly when building on cloud platforms.
## Prerequisites
- The [Docker daemon](https://www.docker.com/get-started) must be installed on your workstation or accessible over the network.
- A container runtime such as [Docker](https://www.docker.com/get-started) or [podman](https://podman.io/getting-started/) must be available to execute builds.
## Install
#### Linux
##### Command
##### AMD64
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
##### ARM64
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
##### S390X
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux-s390x.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
##### PPC64LE
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux-ppc64le.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
#### MacOS
##### Intel
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-macos.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
##### Apple Silicon
```bash
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-macos-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
```
#### Manually
1. Download the `.tgz` or `.zip` file for your platform
@ -291,7 +334,7 @@ jobs:
- name: Create Beta Release
if: ${{ env.PACK_VERSION == env.PACK_MILESTONE }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
@ -300,12 +343,9 @@ jobs:
draft: true
files: pack-v${{ env.PACK_VERSION }}-*
body: |
# pack v${{ env.PACK_VERSION }}
> This is a **beta** release of the Cloud Native Buildpack local CLI. This platform implementation should be relatively stable and reliable, but breaking changes in the underlying [specification](https://github.com/buildpack/spec) may be implemented without notice. Note that pack is intended for local image builds, and thus requires a Docker daemon. The [lifecycle](https://github.com/buildpack/lifecycle) should be used directly when building on cloud platforms.
## Prerequisites
- The [Docker daemon](https://www.docker.com/get-started) must be installed on your workstation or accessible over the network.
- A container runtime such as [Docker](https://www.docker.com/get-started) or [podman](https://podman.io/getting-started/) must be available to execute builds.
## Install

View File

@ -0,0 +1,108 @@
name: Check latest pack release
on:
schedule:
- cron: 0 2 * * 1,4
workflow_dispatch: {}
jobs:
check-release:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Read go versions
id: read-go
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#!/usr/bin/env bash
set -euo pipefail
LATEST_GO_VERSION=$(go version | cut -d ' ' -f 3)
LATEST_RELEASE_VERSION=$(gh release list --exclude-drafts --exclude-pre-releases -L 1 | cut -d $'\t' -f 1 | cut -d ' ' -f 2)
wget https://github.com/$GITHUB_REPOSITORY/releases/download/$LATEST_RELEASE_VERSION/pack-$LATEST_RELEASE_VERSION-linux.tgz -O out.tgz
tar xzf out.tgz
LATEST_RELEASE_GO_VERSION=$(go version ./pack | cut -d ' ' -f 2)
echo "latest-go-version=${LATEST_GO_VERSION}" >> "$GITHUB_OUTPUT"
echo "latest-release-go-version=${LATEST_RELEASE_GO_VERSION}" >> "$GITHUB_OUTPUT"
LATEST_RELEASE_VERSION=$(echo $LATEST_RELEASE_VERSION | cut -d \v -f 2)
echo "latest-release-version=${LATEST_RELEASE_VERSION}" >> "$GITHUB_OUTPUT"
- name: Create issue if needed
if: ${{ steps.read-go.outputs.latest-go-version != steps.read-go.outputs.latest-release-go-version }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#!/usr/bin/env bash
set -euo pipefail
title="Upgrade $GITHUB_REPOSITORY to ${{ steps.read-go.outputs.latest-go-version }}"
label=${{ steps.read-go.outputs.latest-go-version }}
# Create label to use for exact search
gh label create "$label" || true
search_output=$(gh issue list --search "$title" --label "$label")
body="Latest $GITHUB_REPOSITORY release v${{ steps.read-go.outputs.latest-release-version }} is built with Go version ${{ steps.read-go.outputs.latest-release-go-version }}; newer version ${{ steps.read-go.outputs.latest-go-version }} is available."
if [ -z "${search_output// }" ]
then
echo "No issues matched search; creating new issue..."
gh issue create \
--label "type/bug" \
--label "status/triage" \
--label "$label" \
--title "$title" \
--body "$body"
else
echo "Found matching issues:"
echo $search_output
fi
- name: Scan latest release image
id: scan-image
uses: anchore/scan-action@v6
with:
image: docker.io/buildpacksio/pack:${{ steps.read-go.outputs.latest-release-version }}
- name: Create issue if needed
if: failure() && steps.scan-image.outcome == 'failure'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#!/usr/bin/env bash
set -euo pipefail
title="CVE(s) found"
label=cve
# Create label to use for exact search
gh label create "$label" || true
search_output=$(gh issue list --search "$title" --label "$label")
GITHUB_WORKFLOW_URL=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
body="Latest docker.io/buildpacksio/pack v${{ steps.read-go.outputs.latest-release-version }} triggered CVE(s) from Grype. For further details, see: $GITHUB_WORKFLOW_URL"
if [ -z "${search_output// }" ]
then
echo "No issues matched search; creating new issue..."
gh issue create \
--label "type/bug" \
--label "status/triage" \
--label "$label" \
--title "$title" \
--body "$body"
else
echo "Found matching issues:"
echo $search_output
fi

View File

@ -30,11 +30,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@ -45,7 +45,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@ -59,4 +59,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

View File

@ -42,11 +42,12 @@ jobs:
lifecycle_kind: current
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.17'
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
@ -58,3 +59,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make acceptance
docker network prune

View File

@ -1,128 +0,0 @@
name: delivery / ubuntu
on:
release:
types:
- released
workflow_dispatch:
inputs:
tag_name:
description: The release tag to distribute
required: true
ubuntu_ppa:
description: flag indicating this is an ubuntu release
required: true
jobs:
create-ppa:
#if: github.event_name == 'release'
strategy:
fail-fast: false
matrix:
target: [xenial, bionic, focal]
include:
- target: xenial
runner: ubuntu-16.04
image: docker://ubuntu:16.04
i386-go-version: 1.13
- target: bionic
runner: ubuntu-18.04
image: docker://ubuntu:18.04
i386-go-version: 1.15
- target: focal
runner: ubuntu-20.04
image: docker://ubuntu:20.04
i386-go-version: none
name: create-ppa
runs-on: ${{ matrix.runner }}
steps:
- name: Determine version
uses: actions/github-script@v6
id: version
with:
result-encoding: string
script: |
let payload = context.payload;
let tag = (payload.release && payload.release.tag_name) || (payload.inputs && payload.inputs.tag_name);
if (!tag) {
throw "ERROR: unable to determine tag"
}
return tag.replace(/^v/, '');
- name: Checkout code
uses: actions/checkout@v3
- name: Metadata
id: metadata
run: |
echo "::set-output name=date::$(date +"%a, %d %b %Y %T %z")"
- name: Install packaging tools
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:longsleep/golang-backports -y
sudo apt-get update
sudo apt-get install gnupg dput dh-make devscripts lintian golang -y
- name: Fill debian/*
uses: cschleiden/replace-tokens@v1
with:
files: '[".github/workflows/delivery/ubuntu/debian/*"]'
tokenPrefix: '{{'
tokenSuffix: '}}'
env:
ARCH: "any"
I386_GO_VERSION: ${{matrix.i386-go-version}}
PACKAGE_NAME: "pack-cli"
UBUNTU_VERSION: ${{ matrix.target }}
HOMEPAGE: "https://buildpacks.io"
PACK_VERSION: ${{ steps.version.outputs.result }}
REPO: "buildpacks/pack"
DESCRIPTION: "CLI for building apps using Cloud Native Buildpacks"
DATE_TIME: ${{ steps.metadata.outputs.date }}
MAINTAINER_NAME: "cncf-buildpacks"
MAINTAINER_EMAIL: "cncf-buildpacks-maintainers@lists.cncf.io"
- name: Create PPA
run: ./.github/workflows/scripts/create_ppa.sh
env:
PACKAGE_NAME: "pack-cli"
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
MAINTAINER: "cncf-buildpacks"
MAINTANER_EMAIL: "cncf-buildpacks-maintainers@lists.cncf.io"
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
- name: Test Xenial
if: matrix.target == 'xenial'
uses: docker://ubuntu:16.04
env:
PACKAGE_NAME: "pack-cli"
with:
entrypoint: .github/workflows/delivery/ubuntu/test-install-package.sh
- name: Test Bionic
if: matrix.target == 'bionic'
uses: docker://ubuntu:18.04
env:
PACKAGE_NAME: "pack-cli"
with:
entrypoint: .github/workflows/delivery/ubuntu/test-install-package.sh
- name: Test Focal
if: matrix.target == 'focal'
uses: docker://ubuntu:20.04
env:
PACKAGE_NAME: "pack-cli"
with:
entrypoint: .github/workflows/delivery/ubuntu/test-install-package.sh
- name: Upload
run: |
dput "${PPA_DEST}" ./../*.changes
env:
PPA_DEST: "ppa:cncf-buildpacks/pack-cli"

View File

@ -1,9 +1,9 @@
name: delivery / archlinux / git
on:
push:
branches:
- main
# push:
# branches:
# - main
workflow_dispatch:
jobs:
@ -12,7 +12,7 @@ jobs:
env:
PACKAGE_NAME: pack-cli-git
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup working dir
@ -26,9 +26,9 @@ jobs:
version=$(echo "${git_description}" | awk -F- '{print $(1)}' | sed 's/^v//')
revision=$(echo "${git_description}" | awk -F- '{print $(NF-1)}')
commit=$(echo "${git_description}" | awk -F- '{print $(NF)}' | sed 's/^g//')
echo "::set-output name=version::$version"
echo "::set-output name=revision::$revision"
echo "::set-output name=commit::$commit"
echo "version=$version" >> $GITHUB_OUTPUT
echo "revision=$revision" >> $GITHUB_OUTPUT
echo "commit=$commit" >> $GITHUB_OUTPUT
- name: Fill PKGBUILD
uses: cschleiden/replace-tokens@v1
with:
@ -51,4 +51,4 @@ jobs:
PACK_VERSION: ${{ steps.metadata.outputs.version }}
AUR_KEY: ${{ secrets.AUR_KEY }}
with:
entrypoint: .github/workflows/delivery/archlinux/publish-package.sh
entrypoint: .github/workflows/delivery/archlinux/publish-package.sh

View File

@ -11,72 +11,14 @@ on:
required: true
jobs:
pack-cli:
runs-on: ubuntu-latest
env:
PACKAGE_NAME: pack-cli
steps:
- uses: actions/checkout@v3
- name: Determine version
uses: actions/github-script@v6
id: version
with:
result-encoding: string
script: |
let payload = context.payload;
let tag = (payload.release && payload.release.tag_name) || (payload.inputs && payload.inputs.tag_name);
if (!tag) {
throw "ERROR: unable to determine tag"
}
return tag.replace(/^v/, '');
- name: Set PACK_VERSION
run: echo "PACK_VERSION=${{ steps.version.outputs.result }}" >> $GITHUB_ENV
shell: bash
- name: Setup working dir
run: |
mkdir -p ${{ env.PACKAGE_NAME }}
cp .github/workflows/delivery/archlinux/${{ env.PACKAGE_NAME }}/PKGBUILD ${{ env.PACKAGE_NAME }}/PKGBUILD
- name: Metadata
id: metadata
run: |
url=https://github.com/buildpacks/pack/archive/v${{ env.PACK_VERSION }}.tar.gz
filename=pack-${{ env.PACK_VERSION }}.tgz
fullpath=`pwd`/$filename
curl -sSL "$url" -o "$fullpath"
sha512=$(sha512sum "$fullpath" | awk '{ print $1 }')
echo "::set-output name=url::$url"
echo "::set-output name=sha512::$sha512"
- name: Fill PKGBUILD
uses: cschleiden/replace-tokens@v1
with:
files: ${{ env.PACKAGE_NAME }}/PKGBUILD
tokenPrefix: '{{'
tokenSuffix: '}}'
env:
PACK_VERSION: ${{ env.PACK_VERSION }}
SRC_TGZ_URL: ${{ steps.metadata.outputs.url }}
SRC_TGZ_SHA: ${{ steps.metadata.outputs.sha512 }}
- name: Print PKGBUILD
run: cat ${{ env.PACKAGE_NAME }}/PKGBUILD
- name: Test
uses: docker://archlinux:latest
with:
entrypoint: .github/workflows/delivery/archlinux/test-install-package.sh
- name: Publish
uses: docker://archlinux:latest
env:
AUR_KEY: ${{ secrets.AUR_KEY }}
with:
entrypoint: .github/workflows/delivery/archlinux/publish-package.sh
pack-cli-bin:
runs-on: ubuntu-latest
env:
PACKAGE_NAME: pack-cli-bin
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Determine version
uses: actions/github-script@v6
uses: actions/github-script@v7
id: version
with:
result-encoding: string
@ -95,7 +37,7 @@ jobs:
mkdir -p ${{ env.PACKAGE_NAME }}/
cp .github/workflows/delivery/archlinux/${{ env.PACKAGE_NAME }}/PKGBUILD ${{ env.PACKAGE_NAME }}/PKGBUILD
- name: Lookup assets
uses: actions/github-script@v6
uses: actions/github-script@v7
id: assets
with:
script: |
@ -120,9 +62,8 @@ jobs:
run: |
curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }}
sha512=$(sha512sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1)
echo "::set-output name=url::${{ steps.assets.outputs.linux_url }}"
echo "::set-output name=sha512::$sha512"
echo "url=${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT
echo "sha512=$sha512" >> $GITHUB_OUTPUT
- name: Fill PKGBUILD
uses: cschleiden/replace-tokens@v1
with:

View File

@ -21,9 +21,9 @@ jobs:
deliver-chocolatey:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Determine version
uses: actions/github-script@v6
uses: actions/github-script@v7
id: version
with:
result-encoding: string
@ -40,7 +40,7 @@ jobs:
return updatedTag;
- name: Setup working dir
run: |
mkdir ${{ env.CHOCO_PATH }}
mkdir -p ${{ env.CHOCO_PATH }}/source
cp -r .github/workflows/delivery/chocolatey/. ${{ env.CHOCO_PATH }}/
ls -R ${{ env.CHOCO_PATH }}
- name: Download and unzip Pack (Windows)
@ -67,20 +67,20 @@ jobs:
cp LICENSE $file
cat $file
- name: build-release
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v3
with:
args: pack ${{ env.CHOCO_PATH }}/pack.nuspec --outputdirectory ${{ env.CHOCO_PATH}}
args: pack ${{ env.CHOCO_PATH }}/pack.nuspec --outputdirectory ${{ env.CHOCO_PATH}}/source
- name: list files
run: |
ls ${{ env.CHOCO_PATH }}
ls ${{ env.CHOCO_PATH }}/tools
- name: Test Release
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install pack -s ${{ env.CHOCO_PATH }}/pack.${{ env.PACK_VERSION }}.nupkg
args: install pack -s ${{ env.CHOCO_PATH }}/source
- name: Ensure Pack Installed
run: pack help
- name: Upload Release
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v3
with:
args: push ${{ env.CHOCO_PATH }}/pack.${{ env.PACK_VERSION }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.CHOCO_KEY }}
args: push ${{ env.CHOCO_PATH }}/source/pack.${{ env.PACK_VERSION }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.CHOCO_KEY }}

View File

@ -16,16 +16,26 @@ on:
default: false
env:
BUILDER: "paketobuildpacks/builder:tiny"
REGISTRY_NAME: 'docker.io'
USER_NAME: 'buildpacksio'
IMG_NAME: 'pack'
USERNAME: 'buildpacksio'
jobs:
deliver-docker:
strategy:
matrix:
config: [tiny, base]
include:
- config: tiny
base_image: gcr.io/distroless/static
suffix:
- config: base
base_image: ubuntu:jammy
suffix: -base
runs-on: ubuntu-latest
steps:
- name: Determine version
uses: actions/github-script@v6
uses: actions/github-script@v7
id: version
with:
result-encoding: string
@ -39,35 +49,33 @@ jobs:
return tag.replace(/^v/, '');
- name: Checkout source at tag
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: v${{ steps.version.outputs.result }}
# This has to come after the first checkout, so it isn't clobbered
- name: Checkout delivery configuration
uses: actions/checkout@v3
with:
path: ./head
- name: Setup Working Dir
shell: bash
run: |
cp head/.github/workflows/delivery/docker/project.toml project.toml
rm buildpack.yml
- name: Determine App Name
run: 'echo "IMG_NAME=${{ env.USERNAME }}/${{ env.IMG_NAME }}" >> $GITHUB_ENV'
run: 'echo "IMG_NAME=${{ env.REGISTRY_NAME }}/${{ env.USER_NAME }}/${{ env.IMG_NAME }}" >> $GITHUB_ENV'
- name: Login to Dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Pack Build/Publish
uses: dfreilich/pack-action@v2.1.1
env:
BP_GO_BUILD_LDFLAGS: "-s -w -X 'github.com/buildpacks/pack.Version=${{ steps.version.outputs.result }}'"
with:
args: 'build ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }} --builder ${{ env.BUILDER }} --env BP_GO_BUILD_LDFLAGS --publish'
- name: Tag Image as Latest
if: ${{ github.event.release != '' || github.event.inputs.tag_latest }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: buildpacks/github-actions/setup-tools@v5.9.2
- name: Buildx Build/Publish
run: |
docker pull ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }}
docker tag ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }} ${{ env.IMG_NAME }}:latest
docker push ${{ env.IMG_NAME }}:latest
docker buildx build . \
--tag ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }}${{ matrix.suffix }} \
--platform linux/amd64,linux/arm64,linux/s390x,linux/ppc64le \
--build-arg pack_version=${{ steps.version.outputs.result }} \
--build-arg base_image=${{ matrix.base_image }} \
--provenance=false \
--push
- name: Tag Image as Base
if: ${{ (github.event.release != '' || github.event.inputs.tag_latest) && matrix.config == 'base' }}
run: |
crane copy ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }}${{ matrix.suffix }} ${{ env.IMG_NAME }}:base
- name: Tag Image as Latest
if: ${{ (github.event.release != '' || github.event.inputs.tag_latest) && matrix.config != 'base' }}
run: |
crane copy ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }}${{ matrix.suffix }} ${{ env.IMG_NAME }}:latest

View File

@ -14,9 +14,9 @@ jobs:
update-tap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Checkout tap
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: buildpack/homebrew-tap
path: homebrew-tap
@ -24,7 +24,7 @@ jobs:
- name: Copy pack.rb
run: cp .github/workflows/delivery/homebrew/pack.rb homebrew-tap/Formula/pack.rb
- name: Lookup assets
uses: actions/github-script@v6
uses: actions/github-script@v7
id: assets
with:
script: |
@ -50,6 +50,11 @@ jobs:
core.setOutput("linux_url", asset.browser_download_url);
}
if (asset.name.endsWith("linux-arm64.tgz")) {
core.setOutput("linux_arm64_name", asset.name);
core.setOutput("linux_arm64_url", asset.browser_download_url);
}
if (asset.name.endsWith("macos.tgz")) {
core.setOutput("macos_name", asset.name);
core.setOutput("macos_url", asset.browser_download_url);
@ -65,15 +70,19 @@ jobs:
run: |
curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }}
linux_sha256=$(sha256sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1)
echo "::set-output name=linux_sha256::$linux_sha256"
echo "linux_sha256=$linux_sha256" >> $GITHUB_OUTPUT
curl -sSL ${{ steps.assets.outputs.linux_arm64_url }} -o ${{ steps.assets.outputs.linux_arm64_name }}
linux_arm64_sha256=$(sha256sum ${{ steps.assets.outputs.linux_arm64_name }} | cut -d ' ' -f1)
echo "linux_arm64_sha256=$linux_arm64_sha256" >> $GITHUB_OUTPUT
curl -sSL ${{ steps.assets.outputs.macos_url }} -o ${{ steps.assets.outputs.macos_name }}
macos_sha256=$(sha256sum ${{ steps.assets.outputs.macos_name }} | cut -d ' ' -f1)
echo "::set-output name=macos_sha256::$macos_sha256"
echo "macos_sha256=$macos_sha256" >> $GITHUB_OUTPUT
curl -sSL ${{ steps.assets.outputs.macos_arm64_url }} -o ${{ steps.assets.outputs.macos_arm64_name }}
macos_arm64_sha256=$(sha256sum ${{ steps.assets.outputs.macos_arm64_name }} | cut -d ' ' -f1)
echo "::set-output name=macos_arm64_sha256::$macos_arm64_sha256"
echo "macos_arm64_sha256=$macos_arm64_sha256" >> $GITHUB_OUTPUT
- name: Fill pack.rb
uses: cschleiden/replace-tokens@v1
with:
@ -83,6 +92,8 @@ jobs:
env:
LINUX_URL: ${{ steps.assets.outputs.linux_url }}
LINUX_SHA: ${{ steps.checksums.outputs.linux_sha256 }}
LINUX_ARM64_URL: ${{ steps.assets.outputs.linux_arm64_url }}
LINUX_ARM64_SHA: ${{ steps.checksums.outputs.linux_arm64_sha256 }}
MACOS_URL: ${{ steps.assets.outputs.macos_url }}
MACOS_SHA: ${{ steps.checksums.outputs.macos_sha256 }}
MACOS_ARM64_URL: ${{ steps.assets.outputs.macos_arm64_url }}

View File

@ -13,7 +13,7 @@ jobs:
repo: ['buildpacks/docs', 'buildpacks/samples', 'buildpacks/pack-orb', 'buildpacks/github-actions']
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PLATFORM_GITHUB_TOKEN }}
event-type: pack-release

140
.github/workflows/delivery-ubuntu.yml vendored Normal file
View File

@ -0,0 +1,140 @@
name: delivery / ubuntu
on:
release:
types:
- released
workflow_dispatch:
inputs:
tag_name:
description: The release tag to distribute
required: true
env:
MAINTAINER_NAME: "cncf-buildpacks"
MAINTAINER_EMAIL: "cncf-buildpacks-maintainers@lists.cncf.io"
PACKAGE_NAME: "pack-cli"
jobs:
deliver-ppa:
strategy:
fail-fast: false
matrix:
target: [bionic, focal, jammy, noble, oracular, plucky]
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Metadata
id: metadata
run: |
echo "date=$(date +"%a, %d %b %Y %T %z")" >> $GITHUB_OUTPUT
- name: Determine version
uses: actions/github-script@v7
id: version
with:
result-encoding: string
script: |
let payload = context.payload;
let tag = (payload.release && payload.release.tag_name) || (payload.inputs && payload.inputs.tag_name);
if (!tag) {
throw "ERROR: unable to determine tag"
}
return tag.replace(/^v/, '');
- name: Fill debian/*
uses: cschleiden/replace-tokens@v1
with:
files: '[".github/workflows/delivery/ubuntu/debian/*"]'
tokenPrefix: '{{'
tokenSuffix: '}}'
env:
ARCH: "any"
DATE_TIME: ${{ steps.metadata.outputs.date }}
DESCRIPTION: "CLI for building apps using Cloud Native Buildpacks"
GO_DEP_ENTRY: golang (>=1.16)
GO_DEP_LIB_PATH: /usr/lib/go
GO_DEP_PACKAGE_NAME: golang
HOMEPAGE: "https://buildpacks.io"
PACK_VERSION: ${{ steps.version.outputs.result }}
REPO: "buildpacks/pack"
UBUNTU_VERSION: ${{ matrix.target }}
###
# NOTE: 'uses' does not support interpolation so we have to manually define the
# following steps per variant.
###
- name: Deliver bionic
if: matrix.target == 'bionic'
uses: docker://ubuntu:bionic
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver focal
if: matrix.target == 'focal'
uses: docker://ubuntu:focal
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver jammy
if: matrix.target == 'jammy'
uses: docker://ubuntu:jammy
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver noble
if: matrix.target == 'noble'
uses: docker://ubuntu:noble
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver oracular
if: matrix.target == 'oracular'
uses: docker://ubuntu:oracular
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver plucky
if: matrix.target == 'plucky'
uses: docker://ubuntu:plucky
with:
entrypoint: .github/workflows/delivery/ubuntu/deliver.sh
env:
DEBIAN_FRONTEND: "noninteractive"
GO_DEP_PACKAGE_NAME: golang
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}

View File

@ -1,8 +1,8 @@
# Arch Linux
There are 3 maintained packages:
There are two maintained packages by us and one official archlinux package:
- [pack-cli](https://aur.archlinux.org/packages/pack-cli/): The latest release of `pack`, compiled from source.
- [pack-cli](https://archlinux.org/packages/extra/x86_64/pack-cli/): Official Archlinux package in the 'Extra' repo.
- [pack-cli-bin](https://aur.archlinux.org/packages/pack-cli-bin/): The latest release of `pack`, precompiled.
- [pack-cli-git](https://aur.archlinux.org/packages/pack-cli-git/): An unreleased version of `pack`, compiled from source of the `main` branch.

View File

@ -1,22 +0,0 @@
# Maintainer: Michael William Le Nguyen <michael at mail dot ttp dot codes>
# Maintainer: Buildpacks Maintainers <cncf-buildpacks-maintainers at lists dot cncf dot io>
pkgname=pack-cli
pkgver={{PACK_VERSION}}
pkgrel=1
pkgdesc="CLI for building apps using Cloud Native Buildpacks"
arch=('x86_64')
url="https://buildpacks.io/"
license=('Apache')
makedepends=('go-pie')
source=("{{SRC_TGZ_URL}}")
sha512sums=("{{SRC_TGZ_SHA}}")
build() {
export GOPATH="${srcdir}/go"
cd "${srcdir}/pack-${pkgver}"
PACK_VERSION="v${pkgver}" make build
}
package() {
export GOPATH="${srcdir}/go"
go clean -modcache
install -D -m755 "${srcdir}/pack-${pkgver}/out/pack" "${pkgdir}/usr/bin/pack"
}

View File

@ -40,6 +40,9 @@ echo '> Cloning aur...'
git clone "ssh://aur@aur.archlinux.org/${PACKAGE_NAME}.git" "${PACKAGE_AUR_DIR}"
chown -R archie "${PACKAGE_AUR_DIR}"
pushd "${PACKAGE_AUR_DIR}" > /dev/null
echo '> Declare directory ${PACKAGE_AUR_DIR} as safe'
git config --global --add safe.directory "${PACKAGE_AUR_DIR}"
echo '> Checking out master...'
git checkout master

View File

@ -1,7 +0,0 @@
[project]
version = "1.0.2"
source-url = "https://github.com/buildpacks/pack"
[[build.env]]
name = "BP_GO_TARGETS"
value = "./cmd/pack"

View File

@ -14,7 +14,10 @@ class Pack < Formula
elsif OS.mac?
url "{{MACOS_URL}}"
sha256 "{{MACOS_SHA}}"
else
elsif OS.linux? && Hardware::CPU.arm?
url "{{LINUX_ARM64_URL}}"
sha256 "{{LINUX_ARM64_SHA}}"
else
url "{{LINUX_URL}}"
sha256 "{{LINUX_SHA}}"
end

View File

@ -0,0 +1,15 @@
function dependencies() {
: "$GO_DEP_PACKAGE_NAME"
echo "> Installing dev tools..."
apt-get update
apt-get install gnupg debhelper dput dh-make devscripts lintian software-properties-common -y
echo "> Installing git..."
apt-get install git -y
echo "> Installing go..."
add-apt-repository ppa:longsleep/golang-backports -y
apt-get update
apt-get install $GO_DEP_PACKAGE_NAME -y
}

View File

@ -0,0 +1,66 @@
function create_ppa() {
# verify the following are set.
: "$GPG_PUBLIC_KEY"
: "$GPG_PRIVATE_KEY"
: "$PACKAGE_VERSION"
: "$PACKAGE_NAME"
: "$MAINTAINER_NAME"
: "$MAINTAINER_EMAIL"
: "$SCRIPT_DIR"
echo "> Importing GPG keys..."
gpg --import <(echo "$GPG_PUBLIC_KEY")
gpg --allow-secret-key-import --import <(echo "$GPG_PRIVATE_KEY")
# Dependencies fail to be pulled in during the Launchpad build process.
echo "> Vendoring dependencies..."
go mod vendor
echo "> Creating package: ${PACKAGE_NAME}_${PACKAGE_VERSION}"
echo "> Generating skeleton of a debian package..."
export DEBEMAIL=$MAINTAINER_EMAIL
export DEBFULLNAME=$MAINTAINER_NAME
dh_make -p "${PACKAGE_NAME}_${PACKAGE_VERSION}" --single --native --copyright apache --email "${MAINTAINER_EMAIL}" -y
echo "> Copying templated configuration files..."
cp "$SCRIPT_DIR/debian/"* debian/
echo "======="
echo "compat"
echo "======="
cat debian/compat
echo
echo "======="
echo "changelog"
echo "======="
cat debian/changelog
echo
echo "======="
echo "control"
echo "======="
cat debian/control
echo
echo "======="
echo "rules"
echo "======="
cat debian/rules
echo
echo "======="
echo "copyright"
echo "======="
cat debian/copyright
echo
echo "> Removing empty default files created by dh_make..."
rm -f debian/*.ex
rm -f debian/*.EX
rm -f debian/README.*
# Ubuntu ONLY accepts source packages.
echo "> Build a source based debian package..."
debuild -S
# debuild places everything in parent directory
echo "> Files created in: ${PWD}/.."
ls -al ${PWD}/..
}

View File

@ -0,0 +1,21 @@
function test_ppa {
: "$GITHUB_WORKSPACE"
echo "> Creating a test directory..."
testdir="$(mktemp -d)"
echo "> Source Dir: '$GITHUB_WORKSPACE'"
echo "> Test Dir: '$testdir'"
cp -R $GITHUB_WORKSPACE/* $testdir
pushd $testdir
echo "> Building a debian binary package..."
debuild -b -us -uc
echo "> Installing binary package..."
dpkg -i ../*.deb
echo "> Contents installed by the build debain package:"
dpkg -L pack-cli
popd
}

View File

@ -0,0 +1,4 @@
function upload_ppa {
echo "> Uploading PPA..."
dput "ppa:cncf-buildpacks/pack-cli" ./../*.changes
}

View File

@ -7,4 +7,4 @@ For extensive documentation see: https://buildpacks.io/docs/tools/pack/cli/pack/
Please file issues and bugs at https://github.com/buildpacks/pack/
-- {{MAINTAINER_NAME}} <{{MAINTAINER_EMAIL}}> Mon, 05 Oct 2020 21:46:51 +0000
-- {{MAINTAINER_NAME}} <{{MAINTAINER_EMAIL}}> {{DATE_TIME}}

View File

@ -2,7 +2,7 @@ Source: {{PACKAGE_NAME}}
Section: utils
Priority: optional
Maintainer: {{MAINTAINER_NAME}} <{{MAINTAINER_EMAIL}}>
Build-Depends: debhelper (>=9), git, golang (>=1.13) [!i386], golang-{{I386_GO_VERSION}} [i386]
Build-Depends: debhelper (>=9), git, {{GO_DEP_ENTRY}}
Standards-Version: 3.9.8
Vcs-Git: git@github.com/{{REPO}}.git
Vcs-Browser: https://github.com/{{REPO}}

View File

@ -10,12 +10,5 @@ override_dh_auto_test:
override_dh_auto_build:
mkdir -p /tmp/.cache/go-build
GOCACHE=/tmp/.cache/go-build GOFLAGS="-mod=vendor" LDFLAGS="" PACK_VERSION='{{PACK_VERSION}}' PATH="${PATH}:/usr/lib/go-{{I386_GO_VERSION}}/bin" dh_auto_build -- build
GOCACHE=/tmp/.cache/go-build GOFLAGS="-mod=vendor" LDFLAGS="" PACK_VERSION='{{PACK_VERSION}}' PATH="${PATH}:{{GO_DEP_LIB_PATH}}/bin" dh_auto_build -- build
rm -r /tmp/.cache/go-build
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

42
.github/workflows/delivery/ubuntu/deliver.sh vendored Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env bash
set -e
set -o pipefail
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "PWD=${PWD}"
echo "SCRIPT_DIR=${SCRIPT_DIR}"
source "$SCRIPT_DIR/1_dependencies.sh"
source "$SCRIPT_DIR/2_create-ppa.sh"
source "$SCRIPT_DIR/3_test-ppa.sh"
source "$SCRIPT_DIR/4_upload-ppa.sh"
echo
echo "++++++++++++++++++++++++++++"
echo "> Installing dependencies..."
echo "++++++++++++++++++++++++++++"
echo
dependencies
echo
echo "++++++++++++++++++++++++++++"
echo "> Creating PPA..."
echo "++++++++++++++++++++++++++++"
echo
create_ppa
echo
echo "++++++++++++++++++++++++++++"
echo "> Testing PPA..."
echo "++++++++++++++++++++++++++++"
echo
test_ppa
echo
echo "++++++++++++++++++++++++++++"
echo "> Uploading PPA..."
echo "++++++++++++++++++++++++++++"
echo
upload_ppa

View File

@ -1,32 +0,0 @@
#!/usr/bin/env bash
set -e
set -o pipefail
apt-get update
# install neede packaging utilities
DEBIAN_FRONTEND=noninteractive apt-get install git devscripts debhelper software-properties-common -y
# verify GITHUB_WORKSPACE is set up (we are in an action)
: "$GITHUB_WORKSPACE"
# make and move package source into a testing directory
testdir="$(mktemp -d)"
cp -R $GITHUB_WORKSPACE/* $testdir
pushd $testdir
# install golang using ppa
add-apt-repository ppa:longsleep/golang-backports -y
apt-get update
apt-get install golang -y
# build a debian binary package
debuild -b -us -uc
# install the binary package
dpkg -i ../*.deb
# list contents installed by the build debain package
dpkg -L ${PACKAGE_NAME}
popd

View File

@ -8,14 +8,14 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
add-milestone:
runs-on: ubuntu-latest
steps:
- name: Add milestone
uses: actions/github-script@v6
uses: actions/github-script@v7
id: assets
with:
script: |

View File

@ -1,74 +0,0 @@
#!/usr/bin/env bash
set -e
set -o pipefail
readonly PROG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly PACK_DIR="$(cd "${PROG_DIR}/../../.." && pwd)"
# verify the following are set.
: "$PACKAGE_VERSION"
: "$PACKAGE_NAME"
: "$GITHUB_WORKSPACE"
function main() {
# import secrets needed to sign packages we build with debuild
import_gpg
# vendor local dependencies. Otherwise these fail to be pulled in during
# the Launchpad build process
go mod vendor
# set up debian user info.
export DEBEMAIL=$MAINTAINER_EMAIL
export DEBFULLNAME=$MAINTAINER
echo "creating package: ${PACKAGE_NAME}_${PACKAGE_VERSION}"
# generate the skeleton of a debian package.
dh_make -p "${PACKAGE_NAME}_${PACKAGE_VERSION}" --single --native --copyright apache --email "${MAINTAINER_EMAIL}" -y
# copy our templated configuration files.
cp "$PACK_DIR/.github/workflows/delivery/ubuntu/debian/"* debian/
echo "compat"
cat debian/compat
echo
echo "changelog"
cat debian/changelog
echo
echo "control"
cat debian/control
echo
echo "rules"
cat debian/rules
echo
echo "copyright"
cat debian/copyright
echo
# Remove empty default files created by dh_make
rm debian/*.ex
rm debian/*.EX
rm debian/README.*
# build a source based debian package, Ubuntu ONLY accepts source packages.
debuild -S
}
# import gpg keys from env
function import_gpg() {
# verify the following are set.
: "$GPG_PUBLIC_KEY"
: "$GPG_PRIVATE_KEY"
gpg --import <(echo "$GPG_PUBLIC_KEY")
gpg --allow-secret-key-import --import <(echo "$GPG_PRIVATE_KEY")
}
main

View File

@ -1 +1 @@
* @buildpacks/platform-maintainers
* @buildpacks/platform-maintainers @buildpacks/toc

View File

@ -32,8 +32,9 @@ Running user acceptance on a pull request is just as critical as reviewing the c
#### Downloading PR binaries
1. On GitHub's Pull Request view, click on the **Checks** tab.
2. On the top-right, click **Artifacts**.
3. Click on the zip file for the platform you are running.
2. On the left panel, click on the **build** step.
3. On the bottom, there is **Artifacts** section.
4. Click on the zip file for the platform you are running.
#### Setup

View File

@ -26,6 +26,29 @@ Alternatively, you can use Gitpod to run pre-configured dev environment in the c
* Symlinks - Some of our tests attempt to create symlinks. On Windows, this requires the [permission to be provided](https://stackoverflow.com/a/24353758).
### Testing GitHub actions on forks
The pack release process involves chaining a series of GitHub actions together, such as:
* The "build" workflow, which creates:
* .tgz files containing the pack binaries and shasums for the .tgz files
* a draft release with the above artifacts
* The "delivery-docker" workflow, which builds and pushes OCI images containing the pack binary
* The "benchmark" workflow, which runs performance checks for each commit and uploads reports to GitHub Pages
It can be rather cumbersome to test changes to these workflows, as they are heavily intertwined. Thus, we recommend forking the buildpacks/pack repository on GitHub and running through the entire release process end-to-end.
For the fork, it is necessary to complete the following preparations:
* Add the following secrets:
* `DOCKER_PASSWORD` for the delivery-docker workflow, if not using ghcr.io
* `DOCKER_USERNAME` for the delivery-docker workflow, if not using ghcr.io
* `DEPLOY_KEY` for the release-merge workflow, as a SSH private key for repository access
* Enable the issues feature on the repository and create `status/triage` and `type/bug` labels for the check-latest-release workflow
* Create a branch named `gh-pages` for uploading benchmark reports for the benchmark workflow
The `tools/test-fork.sh` script can be used to update the source code to reflect the state of the fork and disable workflows that should not run on the fork repository.
It can be invoked like so: `./tools/test-fork.sh <registry repo name>`
## Tasks
### Building
@ -55,18 +78,22 @@ To run unit and integration tests:
```shell
make unit
```
Test output will be streamed to your terminal and also saved to the file
out/unit
To run acceptance tests:
```shell
make acceptance
```
Test output will be streamed to your terminal and also saved to the file
out/acceptance
Alternately, to run all tests:
```shell
make test
```
To run our full acceptance suite (including cross-compatibility for n-1 `pack` and `lifecycl`):
To run our full acceptance suite (including cross-compatibility for n-1 `pack` and `lifecycle`):
```shell
make acceptance-all
```
@ -100,15 +127,15 @@ make prepare-for-pr
### Acceptance Tests
Some options users can provide to our acceptance tests are:
| ENV_VAR | Description | Default |
|--------------|------------------------------------------------------------------------|---------|
| ACCEPTANCE_SUITE_CONFIG | A set of configurations for how to run the acceptance tests, describing the version of `pack` used for testing, the version of `pack` used to create the builders used in the test, and the version of `lifecycle` binaries used to test with Github | `[{"pack": "current", "pack_create_builder": "current", "lifecycle": "default"}]'` |
| COMPILE_PACK_WITH_VERSION | Tell `pack` what version to consider itself | `dev` |
| GITHUB_TOKEN | A Github Token, used when downloading `pack` and `lifecycle` releases from Github during the test setup | "" |
| LIFECYCLE_IMAGE | Image reference to be used in untrusted builder workflows | buildpacksio/lifecycle:<lifecycle version> |
| LIFECYCLE_PATH | Path to a `.tgz` file filled with a set of `lifecycle` binaries | The Github release for the default version of lifecycle in `pack` |
| PACK_PATH | Path to a `pack` executable. | A compiled version of the current branch |
| PREVIOUS_LIFECYCLE_IMAGE | Image reference to be used in untrusted builder workflows, used to test compatibility of `pack` with the n-1 version of the `lifecycle` | buildpacksio/lifecycle:<PREVIOUS_LIFECYCLE_PATH lifecycle version>, buildpacksio/lifecycle:<n-1 lifecycle version> |
| PREVIOUS_LIFECYCLE_PATH | Path to a `.tgz` file filled with a set of `lifecycle` binaries, used to test compatibility of `pack` with the n-1 version of the `lifecycle` | The Github release for n-1 release of `lifecycle` |
| PREVIOUS_PACK_FIXTURES_PATH | Path to a set of fixtures, used to override the most up-to-date fixtures, in case of changed functionality | `acceptance/testdata/pack_previous_fixtures_overrides` |
| PREVIOUS_PACK_PATH | Path to a `pack` executable, used to test compatibility with n-1 version of `pack` | The most recent release from `pack`'s Github release |
| ENV_VAR | Description | Default |
|--------------|------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| ACCEPTANCE_SUITE_CONFIG | A set of configurations for how to run the acceptance tests, describing the version of `pack` used for testing, the version of `pack` used to create the builders used in the test, and the version of `lifecycle` binaries used to test with Github | `[{"pack": "current", "pack_create_builder": "current", "lifecycle": "default"}]'` |
| COMPILE_PACK_WITH_VERSION | Tell `pack` what version to consider itself | `dev` |
| GITHUB_TOKEN | A Github Token, used when downloading `pack` and `lifecycle` releases from Github during the test setup | "" |
| LIFECYCLE_IMAGE | Image reference to be used in untrusted builder workflows | docker.io/buildpacksio/lifecycle:<lifecycle version> |
| LIFECYCLE_PATH | Path to a `.tgz` file filled with a set of `lifecycle` binaries | The Github release for the default version of lifecycle in `pack` |
| PACK_PATH | Path to a `pack` executable. | A compiled version of the current branch |
| PREVIOUS_LIFECYCLE_IMAGE | Image reference to be used in untrusted builder workflows, used to test compatibility of `pack` with the n-1 version of the `lifecycle` | docker.io/buildpacksio/lifecycle:<PREVIOUS_LIFECYCLE_PATH lifecycle version>, buildpacksio/lifecycle:<n-1 lifecycle version> |
| PREVIOUS_LIFECYCLE_PATH | Path to a `.tgz` file filled with a set of `lifecycle` binaries, used to test compatibility of `pack` with the n-1 version of the `lifecycle` | The Github release for n-1 release of `lifecycle` |
| PREVIOUS_PACK_FIXTURES_PATH | Path to a set of fixtures, used to override the most up-to-date fixtures, in case of changed functionality | `acceptance/testdata/pack_previous_fixtures_overrides` |
| PREVIOUS_PACK_PATH | Path to a `pack` executable, used to test compatibility with n-1 version of `pack` | The most recent release from `pack`'s Github release |

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
ARG base_image=gcr.io/distroless/static
FROM golang:1.24 as builder
ARG pack_version
ENV PACK_VERSION=$pack_version
WORKDIR /app
COPY . .
RUN make build
FROM ${base_image}
COPY --from=builder /app/out/pack /usr/local/bin/pack
ENTRYPOINT [ "/usr/local/bin/pack" ]

131
Makefile
View File

@ -33,10 +33,11 @@ TEST_TIMEOUT?=1200s
UNIT_TIMEOUT?=$(TEST_TIMEOUT)
NO_DOCKER?=
# Clean build flags
clean_build := $(strip ${PACK_BUILD})
clean_sha := $(strip ${PACK_GITSHA1})
# append build number and git sha to version, if not-empty
# Append build number and git sha to version, if not-empty
ifneq ($(and $(clean_build),$(clean_sha)),)
PACK_VERSION:=${PACK_VERSION}+git-${clean_sha}.build-${clean_build}
else ifneq ($(clean_build),)
@ -50,53 +51,43 @@ export CGO_ENABLED=0
BINDIR:=/usr/bin/
.DEFAULT_GOAL := build
# this target must be listed first in order for it to be a default target,
# so that ubuntu_ppa's may be constructed using default build tools.
## build: Build the program
build: out
@echo "> Building..."
$(GOCMD) build -ldflags "-s -w -X 'github.com/buildpacks/pack.Version=${PACK_VERSION}' -extldflags ${LDFLAGS}" -trimpath -o ./out/$(PACK_BIN) -a ./cmd/pack
@echo "=====> Building..."
$(GOCMD) build -ldflags "-s -w -X 'github.com/buildpacks/pack/pkg/client.Version=${PACK_VERSION}' -extldflags '${LDFLAGS}'" -trimpath -o ./out/$(PACK_BIN) -a
## all: Run clean, verify, test, and build operations
all: clean verify test build
# used by apt-get install when installing ubuntu ppa.
# move pack binary onto a path location.
install:
mkdir -p ${DESTDIR}${BINDIR}
cp ./out/$(PACK_BIN) ${DESTDIR}${BINDIR}/
mod-tidy:
$(GOCMD) mod tidy
cd tools && $(GOCMD) mod tidy
tidy: mod-tidy format
package: out
tar czf .$/out$/$(ARCHIVE_NAME).tgz -C .$/out$/ $(PACK_BIN)
install-mockgen:
@echo "> Installing mockgen..."
cd tools && $(GOCMD) install github.com/golang/mock/mockgen
install-goimports:
@echo "> Installing goimports..."
cd tools && $(GOCMD) install golang.org/x/tools/cmd/goimports
## clean: Clean the workspace
clean:
@echo "=====> Cleaning workspace..."
@$(RMRF) .$/out benchmarks.test || (exit 0)
## format: Format the code
format: install-goimports
@echo "> Formating code..."
@echo "=====> Formatting code..."
@goimports -l -w -local ${PACKAGE_BASE} ${SRC}
@go run tools/pedantic_imports/main.go ${PACKAGE_BASE} ${SRC}
install-golangci-lint:
@echo "> Installing golangci-lint..."
cd tools && $(GOCMD) install github.com/golangci/golangci-lint/cmd/golangci-lint
## generate: Generate mocks
generate: install-mockgen
@echo "=====> Generating mocks..."
$(GOCMD) generate ./...
## lint: Check the code
lint: install-golangci-lint
@echo "> Linting code..."
@echo "=====> Linting code..."
@golangci-lint run -c golangci.yaml
## test: Run unit and acceptance tests
test: unit acceptance
# append coverage arguments
## unit: Append coverage arguments
ifeq ($(TEST_COVERAGE), 1)
unit: GOTESTFLAGS:=$(GOTESTFLAGS) -coverprofile=./out/tests/coverage-unit.txt -covermode=atomic
endif
@ -107,29 +98,18 @@ unit: out
@echo "> Running unit/integration tests..."
$(GOCMD) test $(GOTESTFLAGS) -timeout=$(UNIT_TIMEOUT) ./...
## acceptance: Run acceptance tests
acceptance: out
@echo "> Running acceptance tests..."
@echo "=====> Running acceptance tests..."
$(GOCMD) test $(GOTESTFLAGS) -timeout=$(ACCEPTANCE_TIMEOUT) -tags=acceptance ./acceptance
## acceptance-all: Run all acceptance tests
acceptance-all: export ACCEPTANCE_SUITE_CONFIG:=$(shell $(CAT) .$/acceptance$/testconfig$/all.json)
acceptance-all:
@echo "> Running acceptance tests..."
@echo "=====> Running acceptance tests..."
$(GOCMD) test $(GOTESTFLAGS) -timeout=$(ACCEPTANCE_TIMEOUT) -tags=acceptance ./acceptance
clean:
@echo "> Cleaning workspace..."
@$(RMRF) .$/out benchmarks.test || (exit 0)
verify: verify-format lint
generate: install-mockgen
@echo "> Generating mocks..."
$(GOCMD) generate ./...
verify-format: install-goimports
@echo "> Verifying format..."
$(if $(shell goimports -l -local ${PACKAGE_BASE} ${SRC}), @echo ERROR: Format verification failed! && goimports ${GOIMPORTS_DIFF_OPTION} -local ${PACKAGE_BASE} ${SRC} && exit 1)
## prepare-for-pr: Run clean, verify, and test operations and check for uncommitted changes
prepare-for-pr: tidy verify test
@git diff-index --quiet HEAD -- ||\
(echo "-----------------" &&\
@ -141,18 +121,71 @@ prepare-for-pr: tidy verify test
echo "-----------------\n" &&\
exit 0)
## verify: Run format and lint checks
verify: verify-format lint
## verify-format: Verify the format
verify-format: install-goimports
@echo "=====> Verifying format..."
$(if $(shell goimports -l -local ${PACKAGE_BASE} ${SRC}), @echo ERROR: Format verification failed! && goimports ${GOIMPORTS_DIFF_OPTION} -local ${PACKAGE_BASE} ${SRC} && exit 1)
## benchmark: Run benchmark tests
benchmark: out
@echo "> Running Benchmarks"
@echo "=====> Running benchmarks"
$(GOCMD) test -run=^$ -bench=. -benchtime=1s -benchmem -memprofile=./out/bench_mem.out -cpuprofile=./out/bench_cpu.out -tags=benchmarks ./benchmarks/ -v
# NOTE: You can analyze the results, using go tool pprof. For instance, you can start a server to see a graph of the cpu usage by running
# go tool pprof -http=":8082" out/bench_cpu.out. Alternatively, you can run go tool pprof, and in the ensuing cli, run
# commands like top10 or web to dig down into the cpu and memory usage
# For more, see https://blog.golang.org/pprof
## package: Package the program
package: out
tar czf .$/out$/$(ARCHIVE_NAME).tgz -C .$/out$/ $(PACK_BIN)
## install: Install the program to the system
install:
mkdir -p ${DESTDIR}${BINDIR}
cp ./out/$(PACK_BIN) ${DESTDIR}${BINDIR}/
## install-mockgen: Used only by apt-get install when installing ubuntu ppa
install-mockgen:
@echo "=====> Installing mockgen..."
cd tools && $(GOCMD) install github.com/golang/mock/mockgen
## install-goimports: Install goimports dependency
install-goimports:
@echo "=====> Installing goimports..."
cd tools && $(GOCMD) install golang.org/x/tools/cmd/goimports
## install-golangci-lint: Install golangci-lint dependency
install-golangci-lint:
@echo "=====> Installing golangci-lint..."
cd tools && $(GOCMD) install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2
## mod-tidy: Tidy Go modules
mod-tidy:
$(GOCMD) mod tidy -compat=1.24
cd tools && $(GOCMD) mod tidy -compat=1.24
## tidy: Tidy modules and format the code
tidy: mod-tidy format
# NOTE: Windows doesn't support `-p`
## out: Make a directory for output
out:
@mkdir out || (exit 0)
mkdir out$/tests || (exit 0)
## help: Display help information
help: Makefile
@echo ""
@echo "Usage:"
@echo ""
@echo " make [target]"
@echo ""
@echo "Targets:"
@echo ""
@awk -F ':|##' '/^[^\.%\t][^\t]*:.*##/{printf " \033[36m%-20s\033[0m %s\n", $$1, $$NF}' $(MAKEFILE_LIST) | sort
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
.PHONY: clean build format imports lint test unit acceptance prepare-for-pr verify verify-format benchmark
.PHONY: clean build format imports lint test unit acceptance prepare-for-pr verify verify-format benchmark

View File

@ -6,7 +6,7 @@
[![GoDoc](https://godoc.org/github.com/buildpacks/pack?status.svg)](https://godoc.org/github.com/buildpacks/pack)
[![GitHub license](https://img.shields.io/github/license/buildpacks/pack)](https://github.com/buildpacks/pack/blob/main/LICENSE)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/4748/badge)](https://bestpractices.coreinfrastructure.org/projects/4748)
[![Slack](https://img.shields.io/badge/slack-join-ff69b4.svg?logo=slack)](https://slack.buildpacks.io/)
[![Slack](https://img.shields.io/badge/slack-join-ff69b4.svg?logo=slack)](https://slack.cncf.io/)
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/buildpacks/pack)
`pack` makes it easy for...
@ -34,9 +34,9 @@ Check out the command line documentation [here][pack-docs]
To learn more about the details, check out the [specs repository][specs].
[app-dev]: https://buildpacks.io/docs/app-developer-guide/
[bp-author]: https://buildpacks.io/docs/buildpack-author-guide/
[operator]: https://buildpacks.io/docs/operator-guide/
[app-dev]: https://buildpacks.io/docs/for-app-developers/
[bp-author]: https://buildpacks.io/docs/for-buildpack-authors/
[operator]: https://buildpacks.io/docs/for-platform-operators/
[buildpacks.io]: https://buildpacks.io/
[install-pack]: https://buildpacks.io/docs/install-pack/
[getting-started]: https://buildpacks.io/docs/app-journey

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package assertions
@ -60,7 +59,7 @@ func (a ImageAssertionManager) HasCreateTime(image string, expectedTime time.Tim
a.assert.TrueWithMessage(actualTime.Sub(expectedTime) < 5*time.Second && expectedTime.Sub(actualTime) < 5*time.Second, fmt.Sprintf("expected image create time %s to match expected time %s", actualTime, expectedTime))
}
func (a ImageAssertionManager) HasLabelWithData(image, label, data string) {
func (a ImageAssertionManager) HasLabelContaining(image, label, data string) {
a.testObject.Helper()
inspect, err := a.imageManager.InspectLocal(image)
a.assert.Nil(err)
@ -69,6 +68,22 @@ func (a ImageAssertionManager) HasLabelWithData(image, label, data string) {
a.assert.Contains(label, data)
}
func (a ImageAssertionManager) HasLabelNotContaining(image, label, data string) {
a.testObject.Helper()
inspect, err := a.imageManager.InspectLocal(image)
a.assert.Nil(err)
label, ok := inspect.Config.Labels[label]
a.assert.TrueWithMessage(ok, fmt.Sprintf("expected label %s to exist", label))
a.assert.NotContains(label, data)
}
func (a ImageAssertionManager) HasLengthLayers(image string, length int) {
a.testObject.Helper()
inspect, err := a.imageManager.InspectLocal(image)
a.assert.Nil(err)
a.assert.TrueWithMessage(len(inspect.RootFS.Layers) == length, fmt.Sprintf("expected image to have %d layers, found %d", length, len(inspect.RootFS.Layers)))
}
func (a ImageAssertionManager) RunsWithOutput(image string, expectedOutputs ...string) {
a.testObject.Helper()
containerName := "test-" + h.RandString(10)

View File

@ -1,11 +1,11 @@
//go:build acceptance
// +build acceptance
package assertions
import (
"fmt"
"regexp"
"strings"
"testing"
h "github.com/buildpacks/pack/testhelpers"
@ -70,8 +70,27 @@ func (l LifecycleOutputAssertionManager) IncludesSeparatePhases() {
l.assert.ContainsAll(l.output, "[detector]", "[analyzer]", "[builder]", "[exporter]")
}
func (l LifecycleOutputAssertionManager) IncludesLifecycleImageTag(tag string) {
func (l LifecycleOutputAssertionManager) IncludesSeparatePhasesWithBuildExtension() {
l.testObject.Helper()
l.assert.Contains(l.output, tag)
// Earlier pack versions print `[extender]`, later pack versions print `[extender (build)]`.
// Removing the `]` for the extend phase allows us to navigate compat suite complexity without undo headache.
// When previous pack is old enough, we can make the matcher more precise.
l.assert.ContainsAll(l.output, "[detector]", "[analyzer]", "[extender", "[exporter]")
}
func (l LifecycleOutputAssertionManager) IncludesSeparatePhasesWithRunExtension() {
l.testObject.Helper()
l.assert.ContainsAll(l.output, "[detector]", "[analyzer]", "[extender (run)]", "[exporter]")
}
func (l LifecycleOutputAssertionManager) IncludesTagOrEphemeralLifecycle(tag string) {
l.testObject.Helper()
if !strings.Contains(l.output, tag) {
if !strings.Contains(l.output, "pack.local/lifecyle") {
l.testObject.Fatalf("Unable to locate reference to lifecycle image within output")
}
}
}

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package assertions
@ -32,6 +31,42 @@ func (o OutputAssertionManager) ReportsSuccessfulImageBuild(name string) {
o.assert.ContainsF(o.output, "Successfully built image '%s'", name)
}
func (o OutputAssertionManager) ReportsSuccessfulIndexLocallyCreated(name string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully created manifest list '%s'", name)
}
func (o OutputAssertionManager) ReportsSuccessfulIndexPushed(name string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully pushed manifest list '%s' to registry", name)
}
func (o OutputAssertionManager) ReportsSuccessfulManifestAddedToIndex(name string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully added image '%s' to index", name)
}
func (o OutputAssertionManager) ReportsSuccessfulIndexDeleted() {
o.testObject.Helper()
o.assert.Contains(o.output, "Successfully deleted manifest list(s) from local storage")
}
func (o OutputAssertionManager) ReportsSuccessfulIndexAnnotated(name, manifest string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully annotated image '%s' in index '%s'", name, manifest)
}
func (o OutputAssertionManager) ReportsSuccessfulRemoveManifestFromIndex(name string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully removed image(s) from index: '%s'", name)
}
func (o OutputAssertionManager) ReportSuccessfulQuietBuild(name string) {
o.testObject.Helper()
o.testObject.Log("quiet mode")
@ -82,6 +117,12 @@ func (o OutputAssertionManager) ReportsRunImageStackNotMatchingBuilder(runImageS
)
}
func (o OutputAssertionManager) ReportsDeprecatedUseOfStack() {
o.testObject.Helper()
o.assert.Contains(o.output, "Warning: deprecated usage of stack")
}
func (o OutputAssertionManager) WithoutColors() {
o.testObject.Helper()
o.testObject.Log("has no color")
@ -137,6 +178,12 @@ func (o OutputAssertionManager) IncludesUsagePrompt() {
o.assert.Contains(o.output, "Run 'pack --help' for usage.")
}
func (o OutputAssertionManager) ReportsBuilderCreated(name string) {
o.testObject.Helper()
o.assert.ContainsF(o.output, "Successfully created builder image '%s'", name)
}
func (o OutputAssertionManager) ReportsSettingDefaultBuilder(name string) {
o.testObject.Helper()
@ -167,7 +214,7 @@ func (o OutputAssertionManager) IncludesTrustedBuildersHeading() {
o.assert.Contains(o.output, "Trusted Builders:")
}
const googleBuilder = "gcr.io/buildpacks/builder:v1"
const googleBuilder = "gcr.io/buildpacks/builder:google-22"
func (o OutputAssertionManager) IncludesGoogleBuilder() {
o.testObject.Helper()
@ -182,7 +229,7 @@ func (o OutputAssertionManager) IncludesPrefixedGoogleBuilder() {
}
var herokuBuilders = []string{
"heroku/buildpacks:20",
"heroku/builder:24",
}
func (o OutputAssertionManager) IncludesHerokuBuilders() {
@ -200,9 +247,9 @@ func (o OutputAssertionManager) IncludesPrefixedHerokuBuilders() {
}
var paketoBuilders = []string{
"paketobuildpacks/builder:base",
"paketobuildpacks/builder:full",
"paketobuildpacks/builder:tiny",
"paketobuildpacks/builder-jammy-base",
"paketobuildpacks/builder-jammy-full",
"paketobuildpacks/builder-jammy-tiny",
}
func (o OutputAssertionManager) IncludesPaketoBuilders() {

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package assertions

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks
@ -7,7 +6,6 @@ import (
"archive/tar"
"compress/gzip"
"fmt"
"io/ioutil"
"os"
"path/filepath"
@ -23,38 +21,38 @@ const (
defaultMode = 0755
)
type archiveBuildpack struct {
type archiveBuildModule struct {
name string
}
func (a archiveBuildpack) Prepare(sourceDir, destination string) error {
func (a archiveBuildModule) Prepare(sourceDir, destination string) error {
location, err := a.createTgz(sourceDir)
if err != nil {
return errors.Wrapf(err, "creating archive for buildpack %s", a)
return errors.Wrapf(err, "creating archive for build module %s", a)
}
err = os.Rename(location, filepath.Join(destination, a.FileName()))
if err != nil {
return errors.Wrapf(err, "renaming temporary archive for buildpack %s", a)
return errors.Wrapf(err, "renaming temporary archive for build module %s", a)
}
return nil
}
func (a archiveBuildpack) FileName() string {
func (a archiveBuildModule) FileName() string {
return fmt.Sprintf("%s.tgz", a)
}
func (a archiveBuildpack) String() string {
func (a archiveBuildModule) String() string {
return a.name
}
func (a archiveBuildpack) FullPathIn(parentFolder string) string {
func (a archiveBuildModule) FullPathIn(parentFolder string) string {
return filepath.Join(parentFolder, a.FileName())
}
func (a archiveBuildpack) createTgz(sourceDir string) (string, error) {
tempFile, err := ioutil.TempFile("", "*.tgz")
func (a archiveBuildModule) createTgz(sourceDir string) (string, error) {
tempFile, err := os.CreateTemp("", "*.tgz")
if err != nil {
return "", errors.Wrap(err, "creating temporary archive")
}
@ -86,17 +84,18 @@ func (a archiveBuildpack) createTgz(sourceDir string) (string, error) {
}
var (
SimpleLayersParent = &archiveBuildpack{name: "simple-layers-parent-buildpack"}
SimpleLayers = &archiveBuildpack{name: "simple-layers-buildpack"}
SimpleLayersDifferentSha = &archiveBuildpack{name: "simple-layers-buildpack-different-sha"}
InternetCapable = &archiveBuildpack{name: "internet-capable-buildpack"}
ReadVolume = &archiveBuildpack{name: "read-volume-buildpack"}
ReadWriteVolume = &archiveBuildpack{name: "read-write-volume-buildpack"}
ArchiveNotInBuilder = &archiveBuildpack{name: "not-in-builder-buildpack"}
Noop = &archiveBuildpack{name: "noop-buildpack"}
Noop2 = &archiveBuildpack{name: "noop-buildpack-2"}
OtherStack = &archiveBuildpack{name: "other-stack-buildpack"}
ReadEnv = &archiveBuildpack{name: "read-env-buildpack"}
NestedLevelOne = &archiveBuildpack{name: "nested-level-1-buildpack"}
NestedLevelTwo = &archiveBuildpack{name: "nested-level-2-buildpack"}
BpSimpleLayersParent = &archiveBuildModule{name: "simple-layers-parent-buildpack"}
BpSimpleLayers = &archiveBuildModule{name: "simple-layers-buildpack"}
BpSimpleLayersDifferentSha = &archiveBuildModule{name: "simple-layers-buildpack-different-sha"}
BpInternetCapable = &archiveBuildModule{name: "internet-capable-buildpack"}
BpReadVolume = &archiveBuildModule{name: "read-volume-buildpack"}
BpReadWriteVolume = &archiveBuildModule{name: "read-write-volume-buildpack"}
BpArchiveNotInBuilder = &archiveBuildModule{name: "not-in-builder-buildpack"}
BpNoop = &archiveBuildModule{name: "noop-buildpack"}
BpNoop2 = &archiveBuildModule{name: "noop-buildpack-2"}
BpOtherStack = &archiveBuildModule{name: "other-stack-buildpack"}
BpReadEnv = &archiveBuildModule{name: "read-env-buildpack"}
BpNestedLevelOne = &archiveBuildModule{name: "nested-level-1-buildpack"}
BpNestedLevelTwo = &archiveBuildModule{name: "nested-level-2-buildpack"}
ExtReadEnv = &archiveBuildModule{name: "read-env-extension"}
)

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks
@ -11,37 +10,41 @@ import (
h "github.com/buildpacks/pack/testhelpers"
)
type folderBuildpack struct {
type folderBuildModule struct {
name string
}
func (f folderBuildpack) Prepare(sourceDir, destination string) error {
func (f folderBuildModule) Prepare(sourceDir, destination string) error {
sourceBuildpack := filepath.Join(sourceDir, f.name)
info, err := os.Stat(sourceBuildpack)
if err != nil {
return fmt.Errorf("retrieving buildpack folder info for folder: %s: %w", sourceBuildpack, err)
return fmt.Errorf("retrieving folder info for folder: %s: %w", sourceBuildpack, err)
}
destinationBuildpack := filepath.Join(destination, f.name)
err = os.Mkdir(filepath.Join(destinationBuildpack), info.Mode())
if err != nil {
return fmt.Errorf("creating temp buildpack folder in: %s: %w", destinationBuildpack, err)
return fmt.Errorf("creating temp folder in: %s: %w", destinationBuildpack, err)
}
err = h.RecursiveCopyE(filepath.Join(sourceDir, f.name), destinationBuildpack)
if err != nil {
return fmt.Errorf("copying folder buildpack %s: %w", f.name, err)
return fmt.Errorf("copying folder build module %s: %w", f.name, err)
}
return nil
}
func (f folderBuildpack) FullPathIn(parentFolder string) string {
func (f folderBuildModule) FullPathIn(parentFolder string) string {
return filepath.Join(parentFolder, f.name)
}
var (
FolderNotInBuilder = folderBuildpack{name: "not-in-builder-buildpack"}
FolderSimpleLayersParent = folderBuildpack{name: "simple-layers-parent-buildpack"}
FolderSimpleLayers = folderBuildpack{name: "simple-layers-buildpack"}
BpFolderNotInBuilder = folderBuildModule{name: "not-in-builder-buildpack"}
BpFolderSimpleLayersParent = folderBuildModule{name: "simple-layers-parent-buildpack"}
BpFolderSimpleLayers = folderBuildModule{name: "simple-layers-buildpack"}
ExtFolderSimpleLayers = folderBuildModule{name: "simple-layers-extension"}
MetaBpFolder = folderBuildModule{name: "meta-buildpack"}
MetaBpDependency = folderBuildModule{name: "meta-buildpack-dependency"}
MultiPlatformFolderBP = folderBuildModule{name: "multi-platform-buildpack"}
)

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks
@ -7,30 +6,22 @@ import (
"path/filepath"
"testing"
"github.com/buildpacks/pack/internal/builder"
"github.com/buildpacks/pack/testhelpers"
)
type BuildpackManager struct {
type BuildModuleManager struct {
testObject *testing.T
assert testhelpers.AssertionManager
sourceDir string
}
type BuildpackManagerModifier func(b *BuildpackManager)
type BuildModuleManagerModifier func(b *BuildModuleManager)
func WithBuildpackAPIVersion(apiVersion string) func(b *BuildpackManager) {
return func(b *BuildpackManager) {
b.sourceDir = filepath.Join("testdata", "mock_buildpacks", apiVersion)
}
}
func NewBuildpackManager(t *testing.T, assert testhelpers.AssertionManager, modifiers ...BuildpackManagerModifier) BuildpackManager {
m := BuildpackManager{
func NewBuildModuleManager(t *testing.T, assert testhelpers.AssertionManager, modifiers ...BuildModuleManagerModifier) BuildModuleManager {
m := BuildModuleManager{
testObject: t,
assert: assert,
sourceDir: filepath.Join("testdata", "mock_buildpacks", builder.DefaultBuildpackAPIVersion),
sourceDir: filepath.Join("testdata", "mock_buildpacks"),
}
for _, mod := range modifiers {
@ -40,26 +31,26 @@ func NewBuildpackManager(t *testing.T, assert testhelpers.AssertionManager, modi
return m
}
type TestBuildpack interface {
type TestBuildModule interface {
Prepare(source, destination string) error
}
func (b BuildpackManager) PrepareBuildpacks(destination string, buildpacks ...TestBuildpack) {
func (b BuildModuleManager) PrepareBuildModules(destination string, modules ...TestBuildModule) {
b.testObject.Helper()
for _, buildpack := range buildpacks {
err := buildpack.Prepare(b.sourceDir, destination)
for _, module := range modules {
err := module.Prepare(b.sourceDir, destination)
b.assert.Nil(err)
}
}
type Modifiable interface {
SetPublish()
SetBuildpacks([]TestBuildpack)
SetBuildpacks([]TestBuildModule)
}
type PackageModifier func(p Modifiable)
func WithRequiredBuildpacks(buildpacks ...TestBuildpack) PackageModifier {
func WithRequiredBuildpacks(buildpacks ...TestBuildModule) PackageModifier {
return func(p Modifiable) {
p.SetBuildpacks(buildpacks)
}

View File

@ -1,12 +1,10 @@
//go:build acceptance
// +build acceptance
package buildpacks
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@ -21,10 +19,10 @@ type PackageFile struct {
pack *invoke.PackInvoker
destination string
sourceConfigLocation string
buildpacks []TestBuildpack
buildpacks []TestBuildModule
}
func (p *PackageFile) SetBuildpacks(buildpacks []TestBuildpack) {
func (p *PackageFile) SetBuildpacks(buildpacks []TestBuildModule) {
p.buildpacks = buildpacks
}
@ -54,7 +52,7 @@ func (p PackageFile) Prepare(sourceDir, _ string) error {
p.testObject.Helper()
p.testObject.Log("creating package file from:", sourceDir)
tmpDir, err := ioutil.TempDir("", "package-buildpacks")
tmpDir, err := os.MkdirTemp("", "package-buildpacks")
if err != nil {
return fmt.Errorf("creating temp dir for package buildpacks: %w", err)
}

View File

@ -1,11 +1,9 @@
//go:build acceptance
// +build acceptance
package buildpacks
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
@ -22,11 +20,11 @@ type PackageImage struct {
pack *invoke.PackInvoker
name string
sourceConfigLocation string
buildpacks []TestBuildpack
buildpacks []TestBuildModule
publish bool
}
func (p *PackageImage) SetBuildpacks(buildpacks []TestBuildpack) {
func (p *PackageImage) SetBuildpacks(buildpacks []TestBuildModule) {
p.buildpacks = buildpacks
}
@ -58,7 +56,7 @@ func (p PackageImage) Prepare(sourceDir, _ string) error {
p.testObject.Helper()
p.testObject.Log("creating package image from:", sourceDir)
tmpDir, err := ioutil.TempDir("", "package-buildpacks")
tmpDir, err := os.MkdirTemp("", "package-buildpacks")
if err != nil {
return fmt.Errorf("creating temp dir for package buildpacks: %w", err)
}

View File

@ -1,11 +1,9 @@
//go:build acceptance
// +build acceptance
package config
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
@ -27,7 +25,7 @@ const (
var (
currentPackFixturesDir = filepath.Join("testdata", "pack_fixtures")
previousPackFixturesOverridesDir = filepath.Join("testdata", "pack_previous_fixtures_overrides")
lifecycleTgzExp = regexp.MustCompile(`lifecycle-v\d+.\d+.\d+\+linux.x86-64.tgz`)
lifecycleTgzExp = regexp.MustCompile(`lifecycle-v\d+.\d+.\d+(-pre.\d+)?(-rc.\d+)?\+linux.x86-64.tgz`)
)
type AssetManager struct {
@ -248,7 +246,7 @@ func (b assetManagerBuilder) ensurePreviousPackFixtures() string {
sourceDir, err := b.githubAssetFetcher.FetchReleaseSource("buildpacks", "pack", version)
b.assert.Nil(err)
sourceDirFiles, err := ioutil.ReadDir(sourceDir)
sourceDirFiles, err := os.ReadDir(sourceDir)
b.assert.Nil(err)
// GitHub source tarballs have a top-level directory whose name includes the current commit sha.
innerDir := sourceDirFiles[0].Name()
@ -346,7 +344,7 @@ func (b assetManagerBuilder) downloadLifecycleRelative(relativeVersion int) stri
func (b assetManagerBuilder) buildPack(compileVersion string) string {
b.testObject.Helper()
packTmpDir, err := ioutil.TempDir("", "pack.acceptance.binary.")
packTmpDir, err := os.MkdirTemp("", "pack.acceptance.binary.")
b.assert.Nil(err)
packPath := filepath.Join(packTmpDir, acceptanceOS.PackBinaryName)
@ -355,9 +353,9 @@ func (b assetManagerBuilder) buildPack(compileVersion string) string {
b.assert.Nil(err)
cmd := exec.Command("go", "build",
// XXX the version setter is wrong here, there is no cmd.Version
"-ldflags", fmt.Sprintf("-X 'github.com/buildpacks/pack/cmd.Version=%s'", compileVersion),
"-o", packPath,
"./cmd/pack",
)
if filepath.Base(cwd) == "acceptance" {
cmd.Dir = filepath.Dir(cwd)

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config
@ -10,7 +9,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
@ -330,7 +328,7 @@ func (f *GithubAssetFetcher) loadCacheManifest() (assetCache, error) {
return assetCache{}, nil
}
content, err := ioutil.ReadFile(filepath.Join(f.cacheDir, assetCacheManifest))
content, err := os.ReadFile(filepath.Join(f.cacheDir, assetCacheManifest))
if err != nil {
return nil, errors.Wrap(err, "reading cache manifest")
}
@ -371,7 +369,7 @@ func (f *GithubAssetFetcher) writeCacheManifest(owner, repo string, op func(cach
return errors.Wrap(err, "marshaling cache manifest content")
}
return ioutil.WriteFile(filepath.Join(f.cacheDir, assetCacheManifest), content, 0644)
return os.WriteFile(filepath.Join(f.cacheDir, assetCacheManifest), content, 0644)
}
func (f *GithubAssetFetcher) downloadAndSave(assetURI, destPath string) error {

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config
@ -70,6 +69,20 @@ func earliestVersion(versions []*api.Version) *api.Version {
return earliest
}
func latestVersion(versions []*api.Version) *api.Version {
var latest *api.Version
for _, version := range versions {
switch {
case version == nil:
continue
case latest == nil:
latest = version
case latest.Compare(version) < 0:
latest = version
}
}
return latest
}
func (l *LifecycleAsset) EarliestBuildpackAPIVersion() string {
return earliestVersion(l.descriptor.APIs.Buildpack.Supported).String()
}
@ -78,6 +91,10 @@ func (l *LifecycleAsset) EarliestPlatformAPIVersion() string {
return earliestVersion(l.descriptor.APIs.Platform.Supported).String()
}
func (l *LifecycleAsset) LatestPlatformAPIVersion() string {
return latestVersion(l.descriptor.APIs.Platform.Supported).String()
}
func (l *LifecycleAsset) OutputForAPIs() (deprecatedBuildpackAPIs, supportedBuildpackAPIs, deprecatedPlatformAPIs, supportedPlatformAPIs string) {
stringify := func(apiSet builder.APISet) string {
versions := apiSet.AsStrings()
@ -181,22 +198,34 @@ func (l *LifecycleAsset) JSONOutputForAPIs(baseIndentationWidth int) (
type LifecycleFeature int
const CreationTime = iota
const (
CreationTime = iota
BuildImageExtensions
RunImageExtensions
)
var lifecycleFeatureTests = map[LifecycleFeature]func(l *LifecycleAsset) bool{
CreationTime: func(i *LifecycleAsset) bool {
type LifecycleAssetSupported func(l *LifecycleAsset) bool
func supportsPlatformAPI(version string) LifecycleAssetSupported {
return func(i *LifecycleAsset) bool {
for _, platformAPI := range i.descriptor.APIs.Platform.Supported {
if platformAPI.AtLeast("0.9") {
if platformAPI.AtLeast(version) {
return true
}
}
for _, platformAPI := range i.descriptor.APIs.Platform.Deprecated {
if platformAPI.AtLeast("0.9") {
if platformAPI.AtLeast(version) {
return true
}
}
return false
},
}
}
var lifecycleFeatureTests = map[LifecycleFeature]LifecycleAssetSupported{
CreationTime: supportsPlatformAPI("0.9"),
BuildImageExtensions: supportsPlatformAPI("0.10"),
RunImageExtensions: supportsPlatformAPI("0.12"),
}
func (l *LifecycleAsset) SupportsFeature(f LifecycleFeature) bool {

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config

View File

@ -1,11 +1,10 @@
//go:build acceptance
// +build acceptance
package invoke
import (
"bytes"
"io/ioutil"
"fmt"
"os"
"os/exec"
"path/filepath"
@ -44,7 +43,7 @@ func NewPackInvoker(
testObject.Helper()
home, err := ioutil.TempDir("", "buildpack.pack.home.")
home, err := os.MkdirTemp("", "buildpack.pack.home.")
if err != nil {
testObject.Fatalf("couldn't create home folder for pack: %s", err)
}
@ -140,6 +139,10 @@ func (i *PackInvoker) StartWithWriter(combinedOutput *bytes.Buffer, name string,
}
}
func (i *PackInvoker) Home() string {
return i.home
}
type InterruptCmd struct {
testObject *testing.T
assert h.AssertionManager
@ -190,7 +193,7 @@ func (i *PackInvoker) EnableExperimental() {
// - "<command>" (e.g. "create-builder")
// - "<flag>" (e.g. "--verbose")
// - "<command> <flag>" (e.g. "build --network")
// - "<command>... <flag>" (e.g. "config trusted-builder--network")
// - "<command>... <flag>" (e.g. "config trusted-builder --network")
//
// Any other form may return false.
func (i *PackInvoker) Supports(command string) bool {
@ -210,20 +213,82 @@ func (i *PackInvoker) Supports(command string) bool {
search = command
}
re := regexp.MustCompile(fmt.Sprint(`\b%s\b`, search))
output, err := i.baseCmd(cmdParts...).CombinedOutput()
i.assert.Nil(err)
return strings.Contains(string(output), search) && !strings.Contains(string(output), "Unknown help topic")
// FIXME: this doesn't appear to be working as expected,
// as tests against "build --creation-time" and "build --cache" are returning unsupported
// even on the latest version of pack.
return re.MatchString(string(output)) && !strings.Contains(string(output), "Unknown help topic")
}
type Feature int
const CreationTime = iota
const (
CreationTime = iota
Cache
BuildImageExtensions
RunImageExtensions
StackValidation
ForceRebase
BuildpackFlatten
MetaBuildpackFolder
PlatformRetries
FlattenBuilderCreationV2
FixesRunImageMetadata
ManifestCommands
PlatformOption
MultiPlatformBuildersAndBuildPackages
StackWarning
)
var featureTests = map[Feature]func(i *PackInvoker) bool{
CreationTime: func(i *PackInvoker) bool {
return i.Supports("build --creation-time")
},
Cache: func(i *PackInvoker) bool {
return i.Supports("build --cache")
},
BuildImageExtensions: func(i *PackInvoker) bool {
return i.laterThan("v0.27.0")
},
RunImageExtensions: func(i *PackInvoker) bool {
return i.laterThan("v0.29.0")
},
StackValidation: func(i *PackInvoker) bool {
return !i.atLeast("v0.30.0")
},
ForceRebase: func(i *PackInvoker) bool {
return i.atLeast("v0.30.0")
},
BuildpackFlatten: func(i *PackInvoker) bool {
return i.atLeast("v0.30.0")
},
MetaBuildpackFolder: func(i *PackInvoker) bool {
return i.atLeast("v0.30.0")
},
PlatformRetries: func(i *PackInvoker) bool {
return i.atLeast("v0.32.1")
},
FlattenBuilderCreationV2: func(i *PackInvoker) bool {
return i.atLeast("v0.33.1")
},
FixesRunImageMetadata: func(i *PackInvoker) bool {
return i.atLeast("v0.34.0")
},
ManifestCommands: func(i *PackInvoker) bool {
return i.atLeast("v0.34.0")
},
PlatformOption: func(i *PackInvoker) bool {
return i.atLeast("v0.34.0")
},
MultiPlatformBuildersAndBuildPackages: func(i *PackInvoker) bool {
return i.atLeast("v0.34.0")
},
StackWarning: func(i *PackInvoker) bool {
return i.atLeast("v0.37.0")
},
}
func (i *PackInvoker) SupportsFeature(f Feature) bool {
@ -255,7 +320,7 @@ func (i *PackInvoker) atLeast(version string) bool {
func (i *PackInvoker) ConfigFileContents() string {
i.testObject.Helper()
contents, err := ioutil.ReadFile(filepath.Join(i.home, "config.toml"))
contents, err := os.ReadFile(filepath.Join(i.home, "config.toml"))
i.assert.Nil(err)
return string(contents)

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package invoke
@ -7,7 +6,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
@ -58,7 +56,7 @@ func (m PackFixtureManager) VersionedFixtureOrFallbackLocation(pattern, version,
func (m PackFixtureManager) TemplateFixture(templateName string, templateData map[string]interface{}) string {
m.testObject.Helper()
outputTemplate, err := ioutil.ReadFile(m.FixtureLocation(templateName))
outputTemplate, err := os.ReadFile(m.FixtureLocation(templateName))
m.assert.Nil(err)
return m.fillTemplate(outputTemplate, templateData)
@ -69,7 +67,7 @@ func (m PackFixtureManager) TemplateVersionedFixture(
templateData map[string]interface{},
) string {
m.testObject.Helper()
outputTemplate, err := ioutil.ReadFile(m.VersionedFixtureOrFallbackLocation(versionedPattern, version, fallback))
outputTemplate, err := os.ReadFile(m.VersionedFixtureOrFallbackLocation(versionedPattern, version, fallback))
m.assert.Nil(err)
return m.fillTemplate(outputTemplate, templateData)

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package managers
@ -23,10 +22,10 @@ var DefaultDuration = 10 * time.Second
type ImageManager struct {
testObject *testing.T
assert h.AssertionManager
dockerCli client.CommonAPIClient
dockerCli client.APIClient
}
func NewImageManager(t *testing.T, dockerCli client.CommonAPIClient) ImageManager {
func NewImageManager(t *testing.T, dockerCli client.APIClient) ImageManager {
return ImageManager{
testObject: t,
assert: h.NewAssertionManager(t),
@ -44,7 +43,7 @@ func (im ImageManager) CleanupImages(imageNames ...string) {
func (im ImageManager) InspectLocal(image string) (dockertypes.ImageInspect, error) {
im.testObject.Helper()
inspect, _, err := im.dockerCli.ImageInspectWithRaw(context.Background(), image)
inspect, err := im.dockerCli.ImageInspect(context.Background(), image)
return inspect, err
}
@ -90,7 +89,7 @@ func (im ImageManager) ExposePortOnImage(image, containerName string) TestContai
}, nil, nil, containerName)
im.assert.Nil(err)
err = im.dockerCli.ContainerStart(ctx, ctr.ID, dockertypes.ContainerStartOptions{})
err = im.dockerCli.ContainerStart(ctx, ctr.ID, container.StartOptions{})
im.assert.Nil(err)
return TestContainer{
testObject: im.testObject,
@ -120,7 +119,7 @@ func (im ImageManager) CreateContainer(name string) TestContainer {
type TestContainer struct {
testObject *testing.T
dockerCli client.CommonAPIClient
dockerCli client.APIClient
assert h.AssertionManager
name string
id string
@ -137,7 +136,7 @@ func (t TestContainer) RunWithOutput() string {
func (t TestContainer) Cleanup() {
t.testObject.Helper()
t.dockerCli.ContainerKill(context.Background(), t.name, "SIGKILL")
t.dockerCli.ContainerRemove(context.Background(), t.name, dockertypes.ContainerRemoveOptions{Force: true})
t.dockerCli.ContainerRemove(context.Background(), t.name, container.RemoveOptions{Force: true})
}
func (t TestContainer) WaitForResponse(duration time.Duration) string {

View File

@ -1,5 +1,4 @@
//go:build acceptance && !windows
// +build acceptance,!windows
package os

View File

@ -1,5 +1,4 @@
//go:build acceptance && darwin && amd64
// +build acceptance,darwin,amd64
package os

View File

@ -1,5 +1,4 @@
//go:build acceptance && darwin && arm64
// +build acceptance,darwin,arm64
package os

View File

@ -1,5 +1,4 @@
//go:build acceptance && linux
// +build acceptance,linux
package os

View File

@ -1,5 +1,4 @@
//go:build acceptance && windows
// +build acceptance,windows
package os

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package acceptance

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "---> Build: Local Meta-Buildpack Dependency"

View File

@ -0,0 +1,3 @@
@echo off
echo ---- Build: Local Meta-Buildpack Dependency

View File

@ -0,0 +1,9 @@
api = "0.7"
[buildpack]
id = "local/meta-bp-dep"
version = "local-meta-bp-version"
name = "Local Meta-Buildpack Dependency"
[[stacks]]
id = "pack.test.stack"

View File

@ -0,0 +1,11 @@
api = "0.7"
[buildpack]
id = "local/meta-bp"
version = "local-meta-bp-version"
name = "Local Meta-Buildpack"
[[order]]
[[order.group]]
id = "local/meta-bp-dep"
version = "local-meta-bp-version"

View File

@ -0,0 +1,5 @@
[buildpack]
uri = "."
[[dependencies]]
uri = "../meta-buildpack-dependency"

View File

@ -0,0 +1,21 @@
api = "0.10"
[buildpack]
id = "simple/layers"
version = "simple-layers-version"
name = "Simple Layers Buildpack"
[[targets]]
os = "linux"
arch = "amd64"
[[targets]]
os = "linux"
arch = "arm64"
[[targets]]
os = "windows"
arch = "amd64"
[[stacks]]
id = "*"

View File

@ -1,4 +1,4 @@
api = "0.2"
api = "0.7"
[buildpack]
id = "noop.buildpack"

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "---> Build: NOOP Buildpack"

View File

@ -0,0 +1,3 @@
@echo off
echo ---- Build: NOOP Buildpack

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
## always detect

View File

@ -1,4 +1,4 @@
api = "0.2"
api = "0.7"
[buildpack]
id = "noop.buildpack"

Some files were not shown because too many files have changed in this diff Show More