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

[Feature Request] Implement PostBuildCommand #1300

Open
CCF100 opened this issue Dec 16, 2024 · 2 comments · May be fixed by #1301
Open

[Feature Request] Implement PostBuildCommand #1300

CCF100 opened this issue Dec 16, 2024 · 2 comments · May be fixed by #1301

Comments

@CCF100
Copy link

CCF100 commented Dec 16, 2024

Have you checked the readme and man page for this feature?
yes
Have you checked previous issues for this feature?
yes

I have this script I'd like to execute in the working directory of a built package that pushes the package to my self-hosted package cache. Could it be possible to implement a PostBuildCommand argument to have paru automatically invoke it for me?

romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 16, 2024
@romanstingler romanstingler linked a pull request Dec 16, 2024 that will close this issue
@romanstingler
Copy link

romanstingler commented Dec 16, 2024

I just added a PR for your feature request.
I just started using Paru, and I am also fairly new to Rust coding, so no clue what @Morganamilo will address.

But for now, if you want to test it, you can build a new Paru version yourself.
Just download the code from my linked Pull Request and build it with
cargo build --release

The only thing I am not sure is where to place the execution of the command
in the timeline.
Because if the command fails for some reason, then the installation will also fail, if it is a build_install.
but maybe you can test it and give some feedback.

romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 17, 2024
romanstingler pushed a commit to romanstingler/paru that referenced this issue Dec 25, 2024
@Morganamilo
Copy link
Owner

While I'm fine with post build command as to have symmetry with the existing pre build command. Consider if it would work better to just make a post transaction alpm hook and rsync the whole directory over after each transaction.

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 a pull request may close this issue.

3 participants