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

fprime-util new --project doesn't prompt for fprime branch/tag and creates an fprime submodule checked out at devel as of fprime-tools v3.4.0 #2484

Closed
capsulecorplab opened this issue Jan 15, 2024 · 4 comments · Fixed by nasa/fprime-tools#191
Labels

Comments

@capsulecorplab
Copy link
Contributor

capsulecorplab commented Jan 15, 2024

F´ Version 3.4.0
Affected Component

Problem Description

Haven't tested to see if the same behavior exists in fprime-tools v3.4.1, but at least in v3.4.0, fprime-util new --project creates an fprime submodule checked out at a grafted HEAD commit at devel without prompting for fprime branch/tag as described in Creating a New F' Project; I'd have to manually cd into the fprime submodule, run git fetch --tags followed by git checkout v3.4.0

Screenshot from 2024-01-15 16-14-13

Screenshot from 2024-01-15 16-14-49

How to Reproduce

  1. pip install fprime-tools==3.4.0
  2. fprime-util new --project # enter MyFPrimeProject for project name
  3. cd MyFPrimeProject/fprime
  4. git show HEAD

Expected Behavior

fprime-util new --project should prompt for fprime branch/tag as to be able to pin fprime submodule to a version, s.a., v3.4.0

@capsulecorplab capsulecorplab changed the title fprime-util new --project doesn't prompt for fprime version and creates an fprime submodule checked out at devel as of fprime-tools v3.40 fprime-util new --project doesn't prompt for fprime branch/tag and creates an fprime submodule checked out at devel as of fprime-tools v3.40 Jan 15, 2024
@capsulecorplab capsulecorplab changed the title fprime-util new --project doesn't prompt for fprime branch/tag and creates an fprime submodule checked out at devel as of fprime-tools v3.40 fprime-util new --project doesn't prompt for fprime branch/tag and creates an fprime submodule checked out at devel as of fprime-tools v3.4.0 Jan 15, 2024
@thomas-bc
Copy link
Collaborator

Thanks for reporting this bug - this is indeed something that slipped through our testing. Opened nasa/fprime-tools#191 to fix it

Not prompting for a version is intended though, we made the decision for the tool to checkout the latest release only. This makes its usage simpler, and still allows experimented users to checkout earlier versions if needed.

@thomas-bc
Copy link
Collaborator

Also just FYI, we're planning in the near future to take fprime-util new --project out of fprime-util and into a standalone bootstrap tool -- see #2477

@capsulecorplab
Copy link
Contributor Author

Thanks for reporting this bug - this is indeed something that slipped through our testing. Opened fprime-community/fprime-tools#191 to fix it

Not prompting for a version is intended though, we made the decision for the tool to checkout the latest release only. This makes its usage simpler, and still allows experimented users to checkout earlier versions if needed.

I'm confused, so is it by design that fprime-tools isn't prompting for a branch or tag now or is it a bug? I kind of preferred the v3.3.2 behavior when it did prompt for a branch or tag (albeit, with the default option was set to devel)

@thomas-bc
Copy link
Collaborator

It is by design. It was causing issues here with fprime-tools rewriting itself during execution (fprime-util new --project installs in current venv), among other things. We may reconsider when we have the new bootstrap tool as this will alleviate most of the concerns.

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

Successfully merging a pull request may close this issue.

2 participants