Skip to content

Commit ba4bee8

Browse files
author
Natalie Arellano
committed
Merge branch 'main' into pack-volume-key
2 parents 8e0d859 + c1a1382 commit ba4bee8

28 files changed

+570
-216
lines changed

.github/workflows/delivery-archlinux.yml

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -11,64 +11,6 @@ on:
1111
required: true
1212

1313
jobs:
14-
pack-cli:
15-
runs-on: ubuntu-latest
16-
env:
17-
PACKAGE_NAME: pack-cli
18-
steps:
19-
- uses: actions/checkout@v4
20-
- name: Determine version
21-
uses: actions/github-script@v7
22-
id: version
23-
with:
24-
result-encoding: string
25-
script: |
26-
let payload = context.payload;
27-
let tag = (payload.release && payload.release.tag_name) || (payload.inputs && payload.inputs.tag_name);
28-
if (!tag) {
29-
throw "ERROR: unable to determine tag"
30-
}
31-
return tag.replace(/^v/, '');
32-
- name: Set PACK_VERSION
33-
run: echo "PACK_VERSION=${{ steps.version.outputs.result }}" >> $GITHUB_ENV
34-
shell: bash
35-
- name: Setup working dir
36-
run: |
37-
mkdir -p ${{ env.PACKAGE_NAME }}
38-
cp .github/workflows/delivery/archlinux/${{ env.PACKAGE_NAME }}/PKGBUILD ${{ env.PACKAGE_NAME }}/PKGBUILD
39-
- name: Metadata
40-
id: metadata
41-
run: |
42-
url=https://github.com/buildpacks/pack/archive/v${{ env.PACK_VERSION }}.tar.gz
43-
filename=pack-${{ env.PACK_VERSION }}.tgz
44-
fullpath=`pwd`/$filename
45-
46-
curl -sSL "$url" -o "$fullpath"
47-
sha512=$(sha512sum "$fullpath" | awk '{ print $1 }')
48-
echo "url=$url" >> $GITHUB_OUTPUT
49-
echo "sha512=$sha512" >> $GITHUB_OUTPUT
50-
- name: Fill PKGBUILD
51-
uses: cschleiden/replace-tokens@v1
52-
with:
53-
files: ${{ env.PACKAGE_NAME }}/PKGBUILD
54-
tokenPrefix: '{{'
55-
tokenSuffix: '}}'
56-
env:
57-
PACK_VERSION: ${{ env.PACK_VERSION }}
58-
SRC_TGZ_URL: ${{ steps.metadata.outputs.url }}
59-
SRC_TGZ_SHA: ${{ steps.metadata.outputs.sha512 }}
60-
- name: Print PKGBUILD
61-
run: cat ${{ env.PACKAGE_NAME }}/PKGBUILD
62-
- name: Test
63-
uses: docker://archlinux:latest
64-
with:
65-
entrypoint: .github/workflows/delivery/archlinux/test-install-package.sh
66-
- name: Publish
67-
uses: docker://archlinux:latest
68-
env:
69-
AUR_KEY: ${{ secrets.AUR_KEY }}
70-
with:
71-
entrypoint: .github/workflows/delivery/archlinux/publish-package.sh
7214
pack-cli-bin:
7315
runs-on: ubuntu-latest
7416
env:

.github/workflows/delivery/archlinux/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Arch Linux
22

3-
There are 3 maintained packages:
3+
There are two maintained packages by us and one official archlinux package:
44

5-
- [pack-cli](https://aur.archlinux.org/packages/pack-cli/): The latest release of `pack`, compiled from source.
5+
- [pack-cli](https://archlinux.org/packages/extra/x86_64/pack-cli/): Official Archlinux package in the 'Extra' repo.
66
- [pack-cli-bin](https://aur.archlinux.org/packages/pack-cli-bin/): The latest release of `pack`, precompiled.
77
- [pack-cli-git](https://aur.archlinux.org/packages/pack-cli-git/): An unreleased version of `pack`, compiled from source of the `main` branch.
88

.github/workflows/delivery/archlinux/pack-cli/PKGBUILD

Lines changed: 0 additions & 22 deletions
This file was deleted.

acceptance/acceptance_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ func testAcceptance(
16271627

16281628
it.Before(func() {
16291629
h.SkipIf(t, os.Getenv("DOCKER_HOST") != "", "cannot mount volume when DOCKER_HOST is set")
1630+
h.SkipIf(t, imageManager.HostOS() == "windows", "These tests are broken on Windows Containers on Windows when not using the creator; see https://github.com/buildpacks/pack/issues/2147")
16301631

16311632
if imageManager.HostOS() == "windows" {
16321633
volumeRoot = `c:\`

acceptance/assertions/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (o OutputAssertionManager) IncludesTrustedBuildersHeading() {
209209
o.assert.Contains(o.output, "Trusted Builders:")
210210
}
211211

212-
const googleBuilder = "gcr.io/buildpacks/builder:v1"
212+
const googleBuilder = "gcr.io/buildpacks/builder:google-22"
213213

214214
func (o OutputAssertionManager) IncludesGoogleBuilder() {
215215
o.testObject.Helper()

go.mod

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ module github.com/buildpacks/pack
22

33
require (
44
github.com/BurntSushi/toml v1.3.2
5+
github.com/GoogleContainerTools/kaniko v1.22.0
56
github.com/Masterminds/semver v1.5.0
67
github.com/Microsoft/go-winio v0.6.2
78
github.com/apex/log v1.9.0
89
github.com/buildpacks/imgutil v0.0.0-20240605145725-186f89b2d168
910
github.com/buildpacks/lifecycle v0.19.6
10-
github.com/docker/cli v26.1.3+incompatible
11-
github.com/docker/docker v26.1.3+incompatible
11+
github.com/docker/cli v26.1.4+incompatible
12+
github.com/docker/docker v26.1.4+incompatible
1213
github.com/docker/go-connections v0.5.0
1314
github.com/dustin/go-humanize v1.0.1
1415
github.com/gdamore/tcell/v2 v2.7.4
1516
github.com/go-git/go-git/v5 v5.12.0
1617
github.com/golang/mock v1.6.0
1718
github.com/google/go-cmp v0.6.0
18-
github.com/google/go-containerregistry v0.19.1
19+
github.com/google/go-containerregistry v0.20.0
1920
github.com/google/go-github/v30 v30.1.0
2021
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95
2122
github.com/heroku/color v0.0.6
@@ -28,14 +29,14 @@ require (
2829
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8
2930
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
3031
github.com/sclevine/spec v1.4.0
31-
github.com/spf13/cobra v1.8.0
32-
golang.org/x/crypto v0.23.0
33-
golang.org/x/mod v0.17.0
34-
golang.org/x/oauth2 v0.20.0
32+
github.com/spf13/cobra v1.8.1
33+
golang.org/x/crypto v0.25.0
34+
golang.org/x/mod v0.19.0
35+
golang.org/x/oauth2 v0.21.0
3536
golang.org/x/sync v0.7.0
36-
golang.org/x/sys v0.20.0
37-
golang.org/x/term v0.20.0
38-
golang.org/x/text v0.15.0
37+
golang.org/x/sys v0.22.0
38+
golang.org/x/term v0.22.0
39+
golang.org/x/text v0.16.0
3940
gopkg.in/yaml.v3 v3.0.1
4041
)
4142

@@ -108,7 +109,7 @@ require (
108109
github.com/mattn/go-isatty v0.0.20 // indirect
109110
github.com/mattn/go-runewidth v0.0.15 // indirect
110111
github.com/mitchellh/go-homedir v1.1.0 // indirect
111-
github.com/mitchellh/mapstructure v1.4.1 // indirect
112+
github.com/mitchellh/mapstructure v1.5.0 // indirect
112113
github.com/moby/buildkit v0.13.2 // indirect
113114
github.com/moby/docker-image-spec v1.3.1 // indirect
114115
github.com/moby/patternmatcher v0.6.0 // indirect

0 commit comments

Comments
 (0)