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

Allow to specify the TinyPilot version identifier #1871

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jotaen4tinypilot
Copy link
Contributor

@jotaen4tinypilot jotaen4tinypilot commented Mar 14, 2025

Follow-up of https://github.com/tiny-pilot/tinypilot-pro/pull/1474, specifically https://github.com/tiny-pilot/tinypilot-pro/pull/1474#issuecomment-2725155594.

This PR modifies the interface of the build-debian-pkg dev script so that it takes on multiple (optional) named flags, instead of just one (optional) position argument:

  • The --build-targets flag replaces the previous positional input argument.
  • The newly added --tinypilot-version now allows to set the version of the Debian package.
    • That way we are independent from the ambiguous behaviour of the git describe --tags command. We can still use it as implicit default, though. In Pro, we can then explicitly pass in the version identifier from the CircleCI build context – without, however, by directly making the build-debian-pkg script depend on the CircleCI context, e.g. by referencing the CIRCLE_TAG environment variable inside of build-debian-pkg.

When inspecting the parameters of the actual build, the changes appear to work fine:

Review on CodeApprove

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

Successfully merging this pull request may close these issues.

2 participants