-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[release/2.8] Enable build tags in 2.8 #3927
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
Conversation
Codecov ReportPatch and project coverage have no change.
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## release/2.8 #3927 +/- ##
============================================
Coverage 58.87% 58.87%
============================================
Files 102 102
Lines 7120 7120
============================================
Hits 4192 4192
Misses 2284 2284
Partials 644 644 ☔ View full report in Codecov by Sentry. |
f465ee4
to
1d66ab6
Compare
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.
can we apply the fixes on main
first? Otherwise we don't update it there, which means that we're regressing in v3
// | ||
//go:build include_gcs | ||
// +build include_gcs | ||
|
||
package gcs |
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.
Looks like we didn't fix these on the main
branch (still has the empty line after, and the build-tags in the wrong spot);
distribution/registry/storage/driver/gcs/gcs.go
Lines 12 to 16 in 983358f
// | |
//go:build include_gcs | |
// +build include_gcs | |
package gcs |
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.
Done in #3950
keys, err := emptyRootDriver.List(ctx, "/") | ||
if err != nil { | ||
t.Fatalf("unexpected error listing empty root content: %v", err) | ||
} |
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.
These area also missing on main
;
keys, err := emptyRootDriver.List(ctx, "/") |
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.
Done in #3950
@thaJeztah I'd prefer to add those in as part of #3702 That PR also bumps GCS dependency. |
@milosgajdos Is there a reason this PR was closed? Seems like this should get merged and a |
Reopening. Can't remember why I closed this 🤔 |
It would appear we were missing the Go build tags on 2.8.X branch so the images would not have the necessary support for some storage drivers causing breakages to end users trying to use them. This commit fixes both the build and linting issues. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
1d66ab6
to
afe4484
Compare
@thaJeztah PTAL (I've reopened this because I somehow closed this by accident) This is the same as #3950 but for |
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.
LGTM
Ping @wy65701436 @thaJeztah |
@deleteriousEffect maybe you can have a look at this since the current release is broken and we need this to fix it. |
@thaJeztah this is blocked by your requiring changes 🙃 |
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.
lgtm
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.
@@ -38,12 +37,11 @@ const driverName = "oss" | |||
const minChunkSize = 5 << 20 | |||
|
|||
const defaultChunkSize = 2 * minChunkSize | |||
const defaultTimeout = 2 * time.Minute // 2 minute timeout per chunk |
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.
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 dont think I follow this comment. This was removed because it was failing to pass the lint step.
closing in favour of #4009 |
It would appear we were missing the Go build tags on 2.8.X branch so the images would not have the necessary support for some storage drivers causing breakages to end users trying to use them.
This commit fixes both the build and linting issues.
Fixes: #3919