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

Adding files when doing fbrnch import #47

Open
LecrisUT opened this issue Jul 5, 2024 · 5 comments
Open

Adding files when doing fbrnch import #47

LecrisUT opened this issue Jul 5, 2024 · 5 comments

Comments

@LecrisUT
Copy link

LecrisUT commented Jul 5, 2024

For example when importing a rust package, you would want to include the rust2rpm.toml which is not included in the srpm. The issue is that adding this breaks the flow of fbrnch import. Ideally there could be an i (interactive) option that would spawn a bash environment where we do the necessary edits, and then when we exit, take over and continue the process.

@juhp
Copy link
Owner

juhp commented Jul 6, 2024

Okay I think something like that should be possible: I have to look at the code to see what makes most sense

@juhp
Copy link
Owner

juhp commented Jul 6, 2024

So actually there is already this prompt: Press Enter to push and build <n-v-r>, where it waits before push/build.
So you can just hop into a shell (or Ctrl-z I suppose) and make your changes before proceeding.
I admit that may not be completely obvious though...
(Or at that point you can also just Ctrl-c and make your changes and then fbrnch build to push everything).

fbrnch tries to be flexible/lenient wherever it can: so things like build and parallel can be safely interrupted and re-run, even while those builds are on-going (also copr will support this in the next fbrnch release).
(Of course there may be some particular commands where that is not true by necessity.)

@juhp
Copy link
Owner

juhp commented Jul 6, 2024

(Eventually maybe the addition of rust2rpm.toml could be automated too perhaps even, though i don't really do rust packaging so it is a bit beyond me currently.)

@LecrisUT
Copy link
Author

LecrisUT commented Jul 6, 2024

So actually there is already this prompt

Indeed, I was thinking to have it as options [y/n/i]

So you can just hop into a shell (or Ctrl-z I suppose) and make your changes before proceeding.

Oh didn't consider that, I'll give it a try.

(Eventually maybe the addition of rust2rpm.toml could be automated too perhaps even, though i don't really do rust packaging so it is a bit beyond me currently.)

There is no standard for this, but I usually include the rust2rpm.toml in the review comment. But there are even more complicated setups like including a packit workflow or tmt tests. Normally I have these configurations in the git repo I use for reviewing, but sometimes like the packit configuration I still need to manually adjust it for downstream.

@juhp
Copy link
Owner

juhp commented Aug 19, 2024

The prompting changing to Push and build? [Y/n] btw

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