Skip to content

chore(codersdk): move all tailscale imports out of codersdk #12735

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

Merged

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Mar 24, 2024

Currently, importing codersdk just to interact with the API requires importing tailscale, which causes builds to fail unless manually using our fork. Unfortunately this had to touch the healthcheck code as well, since it imported some tailscale types.

image.png

Currently, importing `codersdk` just to interact with the API requires
importing tailscale, which causes builds to fail unless manually using
our fork.
Copy link
Contributor Author

coadler commented Mar 24, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @coadler and the rest of your teammates on Graphite Graphite

it imports tailscale
@coadler coadler marked this pull request as ready for review March 24, 2024 22:23
@coadler coadler changed the title chore(codersdk): move all wireguard functions to workspacesdk chore(codersdk): move all tailscale imports out of codersdk Mar 24, 2024
@coadler coadler requested a review from kylecarbs March 25, 2024 19:56
@coadler coadler requested a review from kylecarbs March 25, 2024 20:14
@@ -1,4 +1,4 @@
package codersdk
package workspacesdk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on merging this into workspaceagents.go and then renaming that file to workspacesdk.go?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I prefer them split up, since them together would be a file >1k lines

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disagree but fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rearranged it a bit

@coadler coadler merged commit 4d5a7b2 into main Mar 26, 2024
26 checks passed
@coadler coadler deleted the colin/chore_codersdk_move_all_wireguard_functions_to_workspacesdk_ branch March 26, 2024 17:44
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants