forked from ynab/heroku-tailscale-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor for latest version of Tailscale #2
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
Open
CoderMiguel
wants to merge
12
commits into
BetterNowOrg:upgrade-tailscale
Choose a base branch
from
CoderMiguel:latest
base: upgrade-tailscale
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Heroku-24 stack does not include `bc` and bash cannot do non-integer math. Use `awk` to convert the timeout & interval to milliseconds so we can use build-in bash math operators.
refactor to tailscale up command
…onfigurable versioning
CoderMiguel
commented
Aug 8, 2025
| (tailscaled -verbose ${TAILSCALED_VERBOSE:--1} --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &) | ||
| (tailscaled -verbose ${TAILSCALED_VERBOSE:--1} --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &) | ||
| tailscale up \ | ||
| --authkey="${TAILSCALE_AUTH_KEY}?preauthorized=true&ephemeral=true" \ |
Author
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.
This change is covered in my other PR
CoderMiguel
commented
Aug 8, 2025
Comment on lines
-48
to
+52
| --timeout=15s \ | ||
| ${TAILSCALE_ADDITIONAL_ARGS:---timeout=15s} | ||
| ${TAILSCALE_ADDITIONAL_ARGS:---accept-routes --timeout=15s} |
Author
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.
This change is covered in my other PR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to dynamically update the version of Tailscale to the latest available so I wrote a refactor to handle that and still allow a configured version to be used. I added a TODO: to log the discrepancy in versions similar to other buildpacks I have used, but wanted to start a conversation before building that logic.
Example: