Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imgutil default platform change #1957

Merged

Conversation

jericop
Copy link
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
go.mod Outdated Show resolved Hide resolved
@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
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
Member

Yes, it appears once we updated imgutil version!

@jjbustamante
Copy link
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
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! ❤️

@jkutner jkutner merged commit b12c9b3 into buildpacks:main Nov 2, 2023
18 checks passed
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
3 participants