GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Copy the api/types/time package to internal client/daemon packages by austinvazquez · Pull Request #50722 · moby/moby Conversation
|
|
Git gets a bit confused because it tries to keep history, but has to decide "did it move to Perhaps we should have 2 commits in this PR; one that moves it to either daemon or client, and a second commit that creates a copy for the other. (not sure which one is best to use for the "move" - ideally we'd pick the one where it's most likely to "stay", so that that one can be used to preserve history) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thinking of that; perhaps the (hope I make sense!) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Yep makes sense. Ironically I had that at first but ended up squashing as I thought there would be a broken commit. Although now I realize client is a module pointing to a point in time of API so it should be fine if I do the daemon first as you said. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yeah, I don't think there's a "best" option, and of course there's still git history. But I suspect the move to daemon will preserve that history best because it's a literal move. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
eb6d49d to
4f1e1be
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR copies the api/types/time package into internal packages for both the client and daemon components. The purpose is to remove the external dependency on the shared API types package by creating internal copies of timestamp utility functions.
Key changes:
github.com/moby/moby/api/types/time to the new internal package pathstime to timestamp to avoid naming conflictsCopilot reviewed 19 out of 25 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
daemon/internal/timestamp/timestamp.go |
New internal timestamp utilities package for daemon |
daemon/internal/timestamp/timestamp_test.go |
Test file for daemon timestamp package |
client/internal/timestamp/timestamp.go |
New internal timestamp utilities package for client |
client/internal/timestamp/timestamp_test.go |
Test file for client timestamp package |
| Multiple daemon files | Updated imports to use new internal timestamp package |
| Multiple client files | Updated imports to use new internal timestamp package |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Signed-off-by: Austin Vazquez <[email protected]>
This change copies the daemon/internal/timestamp package (previously api/types/time) to an internal client package and updates the client usage for GetTimestamp functionality. Signed-off-by: Austin Vazquez <[email protected]>
4f1e1be to
aa80ad2
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.