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

cmd/dist: fix --synology-package-center flag #11062

Merged

Conversation

soniaappasamy
Copy link
Member

Running the following to build new Synology package center releases previously ignored the --synology-package-center flag, which is vital for making app store releases.

./tool/go run ./cmd/dist build synology --synology-package-center

This change updates getTargets to accept the args passed into the build command. And then checks for existance of the synology flag directly. This also allows us to move the synology flag out of the dist main func and into the CLI func where all other build flags are defined.

Can skip-issubot

cmd/dist/dist.go Outdated Show resolved Hide resolved
@soniaappasamy
Copy link
Member Author

Putting in draft for now because this is also broken on the corp side (for both --win-signer and --synology-package-center flags). Gonna look into why the flags aren't evaluated by the time getTargets gets called

@soniaappasamy soniaappasamy marked this pull request as draft February 8, 2024 17:50
@soniaappasamy
Copy link
Member Author

soniaappasamy commented Feb 8, 2024

Aha! After more investigation, I found an issue open in the ffcli lib that explains what's happening here: peterbourgon/ff#124

Running this works:

./tool/go run ./cmd/dist build --synology-package-center synology

While running this does not:

./tool/go run ./cmd/dist build synology --synology-package-center

Although confusing, I think this CLI is in an okayish place as-is then, as long as you interface with the flags in the correct way. I'm gonna repurpose this PR to better document this, and more clearly callout whether a Synology build was run for "package center" versus "sideloading". Attempting to make usage less confusing.

Update logs for synology builds to more clearly callout which variant
is being built. The two existing variants are:

1. Sideloaded (can be manual installed on a device by anyone)
2. Package center distribution (by the tailscale team)

Updates #cleanup

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
@soniaappasamy soniaappasamy force-pushed the soniaappasamy/fix-synology-package-center-build branch from 5dd2ff2 to aaabdca Compare February 8, 2024 19:07
@soniaappasamy soniaappasamy marked this pull request as ready for review February 8, 2024 19:07
@soniaappasamy soniaappasamy merged commit 1217f65 into main Feb 8, 2024
46 checks passed
@soniaappasamy soniaappasamy deleted the soniaappasamy/fix-synology-package-center-build branch February 8, 2024 19:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants