-
Notifications
You must be signed in to change notification settings - Fork 689
[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
base: main
Are you sure you want to change the base?
[WIP]: build tags #4400
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -104,7 +104,12 @@ jobs: | |||||
name: "Run: make binaries with custom BUILDTAGS" | ||||||
run: | | ||||||
set -eux | ||||||
# no_ipfs: make sure it does not incur any IPFS-related dependency | ||||||
# Disabling all optional features and ensuring this does not incur any of the related dependencies | ||||||
go mod vendor | ||||||
rm -rf vendor/github.com/ipfs vendor/github.com/multiformats | ||||||
BUILDTAGS=no_ipfs make binaries | ||||||
rm -rf \ | ||||||
vendor/github.com/ipfs \ | ||||||
vendor/github.com/multiformats \ | ||||||
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 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tags should be named
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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). There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
|
||
extends: default | ||
|
||
ignore: | ||
- _ | ||
|
||
rules: | ||
indentation: | ||
spaces: 2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
|
||
extends: default | ||
|
||
ignore: | ||
- _ | ||
|
||
rules: | ||
indentation: | ||
spaces: 2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package features | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrIPFSSupportMissing = errors.New("ipfs support has been disabled by the distributor of this build") | ||
ErrESGZSupportMissing = errors.New("estargz support has been disabled by the distributor of this build (eg: build tag `no_esgz`)") | ||
ErrOverlayBDSupportMissing = errors.New("overlaybd support has been disabled by the distributor of this build (eg: build tag `no_obd`)") | ||
ErrNydusSupportMissing = errors.New("nydus support has been disabled by the distributor of this build (eg: build tag `no_nydus`)") | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package converter | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
var ( | ||
ErrZstdInRequiresExperimental = errors.New("option --zstdchunked-record-in requires experimental mode to be enabled") | ||
ErrESGZTocRequiresExperimental = errors.New("option --estargz-external-toc requires experimental mode to be enabled") | ||
ErrESGZDiffRequiresExperimental = errors.New("option --estargz-keep-diff-id requires experimental mode to be enabled") | ||
ErrESGSInRequiresExperimental = errors.New("option --estargz-record-in requires experimental mode to be enabled") | ||
) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 specifyingno_stargz
, and vice versa.There was a problem hiding this comment.
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.