-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Split and remove pkg/gitutils and pkg/httputils #33477
Conversation
LGTM ping @cpuguy83 |
ping @aaronlehmann |
Do we need an |
Actually definitely no, |
Right. It's a minor piece of code. When we split components into new repos we can just duplicate it. I don't see any value in duplicating it now. |
@dnephin Value is not creating a new package, and there's nothing really to copy. |
By "there's nothing really to copy" I mean... the function is really that worthless. It's |
Ya, it probably should have included the response body instead of just the status code. But a 4xx or 5xx resposne is not an error from http.Get |
"github.com/docker/docker/pkg/archive" | ||
"github.com/docker/docker/pkg/gitutils" |
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 know this package is used in several projects outside (like libcompose
, …).
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 will have to change their import paths to build/remotecontext/git
.
…ction. Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
3d3d1b7
to
b9d85ac
Compare
I removed |
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
LGTM |
See #32989
Moves
pkg/gitutils
tobuilder/remotecontext/git
where it is used.Split up
pkg/httputils
. Remove unused functions, move the rest to the single consumer. There is one function leftDownload()
, which is very small. It can be duplicated when components are split out.