Skip to content
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

How to update tailscale version #41

Closed
Mansarde opened this issue Jan 3, 2023 · 3 comments
Closed

How to update tailscale version #41

Mansarde opened this issue Jan 3, 2023 · 3 comments

Comments

@Mansarde
Copy link

Mansarde commented Jan 3, 2023

I wanted to build a Docker image with the most up to date Tailscale.
From what I could see it seems that go.mod is where I can define the Tailscale version.

It uses a pseudo-version, currently v1.1.1-0.20221106050213-036334e91350, which somehow maps to Tailscale v1.33.0-dev20221229.
But I didn't have any luck figuring out what pseudo-version I would have to set to update it to e.g. Tailscale v1.34.1

Could anyone give me a pointer as to how the specific Tailscale version is selected?

@willnorris
Copy link
Member

You can update the tailscale version with:

go get -u tailscale.com

We will often build from HEAD, which is why this is a pseudo-version. For that, you'd use go get -u tailscale.com@main. I'll checkin an updated version here in a bit.

@Mansarde
Copy link
Author

Mansarde commented Jan 7, 2023

You mean execute that in the running container?
But how would I need to modify go.mod in the repo, so that I can build an image that already has the new Tailscale installed?
Usually I would assume I just change the tailscale.com v1.1.1-0.20221106050213-036334e91350 to tailscale.com v1.34.2, but then I would not be using a pseudo-version that the comment in the file talks about.

How do I create an image with the latest Tailscale while still keeping a pseudo-version entry in the go.mod file?
I'm just confused as to how the pseudo-version is determined and maps to a particular real Tailscale version. 🤔

@willnorris
Copy link
Member

the version of tailscale that golink uses has since been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants