-
Notifications
You must be signed in to change notification settings - Fork 32
refactor: move internal/pkg/version to internal/version #428
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
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 |
|---|---|---|
|
|
@@ -95,8 +95,7 @@ func NewClientFactory(options ...func(*ClientFactory)) *ClientFactory { | |
| // TODO: Temporary hack to get around circular dependency in internal/api/client.go since that imports version | ||
|
Member
Author
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. thought: I did a little research and I believe this TODO is was solved by our I don't want to remove this comment in this PR, because it's out-of-scope, but I'll start to work on a follow-up PR that removes this comment and potentially some other cleanup related to this.
Member
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. @mwbrooks Do be warned - The versions expected for I'm optimistic from the
Member
Author
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. 🧠 Oh yes, that's a good point! I've put together PR #429 and I'll circle back to test the login. I could definitely use your help on thinking about edge-cases in it. |
||
| // Follows pattern demonstrated by the GitHub CLI here https://github.com/cli/cli/blob/5a46c1cab601a3394caa8de85adb14f909b811e9/pkg/cmd/factory/default.go#L29 | ||
| // Used by the APIClient for its userAgent | ||
| // Currently needed because trying to get the version of the CLI from pkg/version/version.go would cause a circular dependency | ||
| // We can get rid of this once we refactor the code relationship between pkg/ and internal/ | ||
| // Currently needed because trying to get the version of the CLI from internal/version would cause a circular dependency | ||
| // userAgent can get Slack CLI version from context which is defined in main.go, this approach bypass circular dependency. The clients.CLIVersion is retained for future code refactor purpose and serve SetVersion function | ||
| clients.CLIVersion = "" | ||
|
|
||
|
|
||
|
Member
Author
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. farewell: So long and thanks for all the fish pkg 🐬 |
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.
🔭 praise: This is a nice
diffto find!