Compare commits

...

740 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
389 changed files with 16533 additions and 2981 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

@ -13,11 +13,13 @@ jobs:
name: Run Go benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
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

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: [windows-2019]
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,10 +68,10 @@ jobs:
}
shell: powershell
- name: Set up go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env for Unix
if: runner.os != 'Windows'
run: |
@ -90,36 +86,6 @@ jobs:
shell: powershell
- name: Verify
run: make verify
- name: Register runner IP
if: matrix.config == 'windows-wcow'
shell: powershell
run: |
# Get IP from default gateway interface
$IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress
# Allow container-to-host registry traffic (from public interface, to the same interface)
New-NetfirewallRule -DisplayName test-registry -LocalAddress $IPAddress -RemoteAddress $IPAddress
# create or update daemon config to allow host as insecure-registry
$config=@{}
if (Test-Path C:\ProgramData\docker\config\daemon.json) {
$config=(Get-Content C:\ProgramData\docker\config\daemon.json | ConvertFrom-json)
}
$config | Add-Member -Force -Name "insecure-registries" -value @("$IPAddress/32") -MemberType NoteProperty
ConvertTo-json $config | Out-File -Encoding ASCII C:\ProgramData\docker\config\daemon.json
Restart-Service docker
# dump docker info for auditing
docker version
docker info
# Modify etc\hosts to include runner IP
$IPAddress=(Get-NetIPAddress -InterfaceAlias ((Get-NetRoute "0.0.0.0/0").InterfaceAlias) -AddressFamily IPv4)[0].IPAddress
"# Modified by CNB: https://github.com/buildpacks/ci/tree/main/gh-runners/windows
${IPAddress} host.docker.internal
${IPAddress} gateway.docker.internal
" | Out-File -Filepath C:\Windows\System32\drivers\etc\hosts -Encoding utf8
- name: Test
env:
TEST_COVERAGE: 1
@ -135,7 +101,7 @@ jobs:
verbose: true
- name: Prepare Codecov
if: matrix.os == 'windows'
uses: crazy-max/ghaction-chocolatey@v2
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install codecov -y
- name: run Codecov
@ -156,8 +122,7 @@ jobs:
env:
PACK_BUILD: ${{ github.run_number }}
shell: powershell
- uses: actions/upload-artifact@v3
if: matrix.config != 'windows-lcow'
- uses: actions/upload-artifact@v4
with:
name: pack-${{ matrix.os }}
path: out/${{ env.PACK_BIN }}
@ -170,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@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
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 }}
@ -197,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: |
@ -217,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
@ -230,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
@ -269,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:
@ -280,8 +264,6 @@ jobs:
prerelease: true
files: pack-v${{ env.PACK_VERSION }}-*
body: |
> 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.
## Prerequisites
- 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.
@ -302,6 +284,17 @@ jobs:
(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
@ -341,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:
@ -350,8 +343,6 @@ jobs:
draft: true
files: pack-v${{ env.PACK_VERSION }}-*
body: |
> 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.
## Prerequisites
- 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.

View File

@ -10,8 +10,8 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Read go versions
@ -25,7 +25,7 @@ jobs:
LATEST_GO_VERSION=$(go version | cut -d ' ' -f 3)
LATEST_RELEASE_VERSION=$(gh release list -L 1 | cut -d $'\t' -f 1 | cut -d ' ' -f 2)
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
@ -70,9 +70,9 @@ jobs:
fi
- name: Scan latest release image
id: scan-image
uses: anchore/scan-action@v3
uses: anchore/scan-action@v6
with:
image: buildpacksio/pack:${{ steps.read-go.outputs.latest-release-version }}
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:
@ -91,7 +91,7 @@ jobs:
search_output=$(gh issue list --search "$title" --label "$label")
GITHUB_WORKFLOW_URL=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
body="Latest buildpacksio/pack v${{ steps.read-go.outputs.latest-release-version }} triggered CVE(s) from Grype. For further details, see: $GITHUB_WORKFLOW_URL"
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

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,12 +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@v4
uses: actions/setup-go@v5
with:
go-version: "1.20"
check-latest: true
go-version-file: 'go.mod'
- name: Set up go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
@ -59,3 +59,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make acceptance
docker network prune

View File

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

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 "url=$url" >> $GITHUB_OUTPUT
echo "sha512=$sha512" >> $GITHUB_OUTPUT
- 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: |

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@v2
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@v2
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@v2
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-jammy-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,38 +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: |
rm project.toml || true
cp head/.github/workflows/delivery/docker/project.toml project.toml
- 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@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: buildpacks/github-actions/setup-tools@v5.3.1
- 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 buildx build . \
--tag ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }} \
--platform linux/amd64,linux/arm64 \
--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 Latest
if: ${{ github.event.release != '' || github.event.inputs.tag_latest }}
- 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 }} ${{ env.IMG_NAME }}:latest
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);
@ -67,6 +72,10 @@ jobs:
linux_sha256=$(sha256sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1)
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 "macos_sha256=$macos_sha256" >> $GITHUB_OUTPUT
@ -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

View File

@ -20,11 +20,11 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [bionic, focal, jammy, lunar]
runs-on: ubuntu-20.04
target: [bionic, focal, jammy, noble, oracular, plucky]
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Metadata
id: metadata
@ -32,7 +32,7 @@ jobs:
echo "date=$(date +"%a, %d %b %Y %T %z")" >> $GITHUB_OUTPUT
- name: Determine version
uses: actions/github-script@v6
uses: actions/github-script@v7
id: version
with:
result-encoding: string
@ -103,9 +103,33 @@ jobs:
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
PACKAGE_VERSION: ${{ steps.version.outputs.result }}
- name: Deliver lunar
if: matrix.target == 'lunar'
uses: docker://ubuntu:lunar
- 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:

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

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

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

@ -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
@ -104,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 |

View File

@ -1,11 +1,12 @@
FROM golang:1.20 as builder
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 scratch
FROM ${base_image}
COPY --from=builder /app/out/pack /usr/local/bin/pack
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT [ "/usr/local/bin/pack" ]

View File

@ -58,7 +58,7 @@ BINDIR:=/usr/bin/
## 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
$(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
@ -160,12 +160,12 @@ install-goimports:
## install-golangci-lint: Install golangci-lint dependency
install-golangci-lint:
@echo "=====> Installing golangci-lint..."
cd tools && $(GOCMD) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1
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.20
cd tools && $(GOCMD) mod tidy -compat=1.20
$(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

View File

@ -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,15 @@ 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)

View File

@ -1,11 +1,11 @@
//go:build acceptance
// +build acceptance
package assertions
import (
"fmt"
"regexp"
"strings"
"testing"
h "github.com/buildpacks/pack/testhelpers"
@ -85,8 +85,12 @@ func (l LifecycleOutputAssertionManager) IncludesSeparatePhasesWithRunExtension(
l.assert.ContainsAll(l.output, "[detector]", "[analyzer]", "[extender (run)]", "[exporter]")
}
func (l LifecycleOutputAssertionManager) IncludesLifecycleImageTag(tag string) {
func (l LifecycleOutputAssertionManager) IncludesTagOrEphemeralLifecycle(tag string) {
l.testObject.Helper()
l.assert.Contains(l.output, tag)
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,8 +229,7 @@ func (o OutputAssertionManager) IncludesPrefixedGoogleBuilder() {
}
var herokuBuilders = []string{
"heroku/builder:22",
"heroku/buildpacks:20",
"heroku/builder:24",
}
func (o OutputAssertionManager) IncludesHerokuBuilders() {

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

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks
@ -47,4 +46,5 @@ var (
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,8 +6,6 @@ import (
"path/filepath"
"testing"
"github.com/buildpacks/pack/internal/builder"
"github.com/buildpacks/pack/testhelpers"
)
@ -20,17 +17,11 @@ type BuildModuleManager struct {
type BuildModuleManagerModifier func(b *BuildModuleManager)
func WithBuildpackAPIVersion(apiVersion string) func(b *BuildModuleManager) {
return func(b *BuildModuleManager) {
b.sourceDir = filepath.Join("testdata", "mock_buildpacks", apiVersion)
}
}
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 {

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package buildpacks

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package config
@ -354,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

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,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,5 +1,4 @@
//go:build acceptance
// +build acceptance
package invoke
@ -235,6 +234,13 @@ const (
ForceRebase
BuildpackFlatten
MetaBuildpackFolder
PlatformRetries
FlattenBuilderCreationV2
FixesRunImageMetadata
ManifestCommands
PlatformOption
MultiPlatformBuildersAndBuildPackages
StackWarning
)
var featureTests = map[Feature]func(i *PackInvoker) bool{
@ -262,6 +268,27 @@ var featureTests = map[Feature]func(i *PackInvoker) bool{
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 {

View File

@ -1,5 +1,4 @@
//go:build acceptance
// +build acceptance
package invoke

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

@ -1,4 +1,4 @@
api = "0.2"
api = "0.7"
[buildpack]
id = "local/meta-bp"

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

@ -1,4 +1,4 @@
api = "0.2"
api = "0.7"
[buildpack]
id = "noop.buildpack"

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
## always detect

View File

@ -16,7 +16,8 @@ if [[ -f "$platform_dir/env/ENV1_CONTENTS" ]]; then
contents=$(cat "$platform_dir/env/ENV1_CONTENTS")
echo "$contents" > "$launch_dir/env1-launch-layer/env1-launch-dep"
ln -snf "$launch_dir/env1-launch-layer" env1-launch-deps
echo "launch = true" > "$launch_dir/env1-launch-layer.toml"
echo "[types]" > "$launch_dir/env1-launch-layer.toml"
echo "launch = true" >> "$launch_dir/env1-launch-layer.toml"
fi
## makes a launch layer
@ -26,7 +27,8 @@ if [[ -f "$platform_dir/env/ENV2_CONTENTS" ]]; then
contents=$(cat "$platform_dir/env/ENV2_CONTENTS")
echo "$contents" > "$launch_dir/env2-launch-layer/env2-launch-dep"
ln -snf "$launch_dir/env2-launch-layer" env2-launch-deps
echo "launch = true" > "$launch_dir/env2-launch-layer.toml"
echo "[types]" > "$launch_dir/env2-launch-layer.toml"
echo "launch = true" >> "$launch_dir/env2-launch-layer.toml"
fi
echo "---> Done"

View File

@ -11,7 +11,8 @@ if exist %platform_dir%\env\ENV1_CONTENTS (
set /p contents=<%platform_dir%\env\ENV1_CONTENTS
echo !contents!> %launch_dir%\env1-launch-layer\env1-launch-dep
mklink /j env1-launch-deps %launch_dir%\env1-launch-layer
echo launch = true> %launch_dir%\env1-launch-layer.toml
echo [types] > %launch_dir%\env1-launch-layer.toml
echo launch = true >> %launch_dir%\env1-launch-layer.toml
)
:: makes a launch layer
@ -21,7 +22,8 @@ if exist %platform_dir%\env\ENV2_CONTENTS (
set /p contents=<%platform_dir%\env\ENV2_CONTENTS
echo !contents!> %launch_dir%\env2-launch-layer\env2-launch-dep
mklink /j env2-launch-deps %launch_dir%\env2-launch-layer
echo launch = true> %launch_dir%\env2-launch-layer.toml
echo [types] > %launch_dir%\env2-launch-layer.toml
echo launch = true >> %launch_dir%\env2-launch-layer.toml
)
echo --- Done

View File

@ -35,6 +35,6 @@ if [[ -z "$EXT_RUN_SWITCH" ]]; then
else
echo "Generating run.Dockerfile for run image switch..."
cat >>"${output_dir}/run.Dockerfile" <<EOL
FROM some-not-exist-run-image!
FROM busybox:latest
EOL
fi

Some files were not shown because too many files have changed in this diff Show More