Skip to content

Imgutil default platform change#1957

Merged
jkutner merged 3 commits intobuildpacks:mainfrom
jericop:imgutil-default-platform-change-test
Nov 2, 2023
Merged

Imgutil default platform change#1957
jkutner merged 3 commits intobuildpacks:mainfrom
jericop:imgutil-default-platform-change-test

Conversation

@jericop
Copy link
Copy Markdown
Contributor

@jericop jericop commented Nov 1, 2023

Summary

This change uses a modified version of imgutil that updates the defaultPlatform to support multi-arch builds. See buildpacks/imgutil#232

Output

Before

After

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Resolves #1958

@jericop jericop requested review from a team as code owners November 1, 2023 17:37
@github-actions github-actions Bot added this to the 0.32.0 milestone Nov 1, 2023
@github-actions github-actions Bot added type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Nov 1, 2023
Comment thread go.mod Outdated
@jjbustamante jjbustamante added type/bug Issue that reports an unexpected behaviour. and removed type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Nov 1, 2023
@github-actions github-actions Bot added type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Nov 2, 2023
Signed-off-by: Jerico Pena <jericop@gmail.com>
Signed-off-by: Jerico Pena <jericop@gmail.com>
@jericop jericop force-pushed the imgutil-default-platform-change-test branch from 8a98128 to 6fae7c7 Compare November 2, 2023 03:35
@jericop jericop changed the title Imgutil default platform change test Imgutil default platform change Nov 2, 2023
@jjbustamante
Copy link
Copy Markdown
Member

jjbustamante commented Nov 2, 2023

@jericop I noticed the CI is failing because of this

➜  buildpacks-pack git:(imgutil-default-platform-change-test) make verify
=====> Installing goimports...
cd tools && go install golang.org/x/tools/cmd/goimports
=====> Verifying format...
=====> Installing golangci-lint...
cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1
=====> Linting code...
WARN [linters_context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.
internal/layer/writer_factory_test.go:4:2: "archive/tar" imported and not used (typecheck)
        "archive/tar"
        ^
make: *** [lint] Error 1

I am not totally sure if it is because bumping the imgutil version ...

@jjbustamante
Copy link
Copy Markdown
Member

Yes, it appears once we updated imgutil version!

@jjbustamante
Copy link
Copy Markdown
Member

jjbustamante commented Nov 2, 2023

@jericop imgutil PR was merged!! could you update your go.mod file to point to that commit?

Locally I did it and check the make verify and everything seems to be fine

> pack git:(main) go get github.com/buildpacks/imgutil@84d632186b59725f22f7eaace97a0090418091c5
> pack git:(main) make verify
=====> Installing goimports...
cd tools && go install golang.org/x/tools/cmd/goimports
=====> Verifying format...
=====> Installing golangci-lint...
cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1
=====> Linting code...
WARN [linters_context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.

Signed-off-by: Jerico Pena <jericop@gmail.com>
Copy link
Copy Markdown
Member

@jjbustamante jjbustamante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! ❤️

Comment thread pkg/client/docker.go
@jkutner jkutner merged commit b12c9b3 into buildpacks:main Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug Issue that reports an unexpected behaviour. type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When creating a Builder using docker buildx --platform linux/arm64 pack creates the builder with a lifecycle linux/amd64 binary

3 participants