Skip to content

[WIP]: build tags #4400

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

apostasie
Copy link
Contributor

TBD

Signed-off-by: apostasie <spam_blackhole@farcloser.world>
vendor/github.com/containerd/nydus-snapshotter \
vendor/github.com/containerd/stargz-snapshotter \
vendor/github.com/containerd/accelerated-container-image
BUILDTAGS=no_ipfs,no_nydus,no_esgz,no_obd make binaries
Copy link
Member

Choose a reason for hiding this comment

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

Tags should be named no_${SNAPSHOTTER_NAME}

Suggested change
BUILDTAGS=no_ipfs,no_nydus,no_esgz,no_obd make binaries
BUILDTAGS=no_ipfs,no_nydus,no_stargz,no_overlaybd make binaries

Copy link
Contributor Author

Choose a reason for hiding this comment

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

esgz -> stargz - I was wondering - we might want to do that generally (eg: on var and func names as well).

Copy link
Member

Choose a reason for hiding this comment

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

Maybe yes, but it can be discussed separately, as var names and func names are not visible to users and package maintainers.

go mod vendor
rm -rf vendor/github.com/ipfs vendor/github.com/multiformats
BUILDTAGS=no_ipfs make binaries
Copy link
Member

Choose a reason for hiding this comment

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

This one should be still tested

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They all are tested below, right?

Copy link
Member

Choose a reason for hiding this comment

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

No, we should still make sure that compilation of no_ipfs doesn't need explicitly specifying no_stargz, and vice versa.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see what you mean.
I'll separate them.

@apostasie
Copy link
Contributor Author

Thanks @AkihiroSuda for the early feedback.
There is still a good amount of work TBD here before it can be considered for merge.

I will try to get that done tonight before I fly to EU for vacation tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants