-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
pdfcpu version panics with runtime error #751
Comments
Please pull the release again and let me know if that works for you. Although I don't think this is the cause of this, the output of
|
Thanks for the info, @hhrutter, much appreciated! When building locally from a clone of this repo |
@hhrutter looking at the implementation of If I'm not mistaken then debug.ReadBuildInfo() could return a The issue can easily be reproduced by temporarily moving the For a possible fix please see #752 🙂 |
Yes I am aware of that and that safeguard does not hurt. |
I'm uncertain whether I understood your question correctly, so I'm going to answer what I think you asked :)
cd $PATH_TO_REPO/pdfcpu
mv .git _git
(cd cmd/pdfcpu && go build && ./pdfcpu version)
mv _git .git
curl -#L https://github.com/pdfcpu/pdfcpu/archive/refs/tags/v0.6.0.tar.gz | tar zxf -
(cd pdfcpu-0.6.0/cmd/pdfcpu && go build && ./pdfcpu version) |
Why would anybody remove the .git repo from the sources before building? Just ignoring expected parameters during So whatever needs to be observed during building has to be part of the install instructions. |
It's not that NixOS is actively removing the NixOS provides options, e.g. |
Thank you for your comments and questions, @hhrutter, they kept me on my toes and helped me find a way to update pdfcpu in NixOS without requiring changes in this repo (see NixOS/nixpkgs#273438). I can see how the fix or rather workaround proposed in #752 is less than ideal and maybe a better approach would be to not omit the "commit" line, but rather display From my point of view there is value in addressing the panic caused by the possibility that the From my end this issue and #752 can be considered close, yet I'm happy to help improving pdfcpu in this regard if you see value in it and I can be helpful 🙂 |
Nix requires sources downloaded from the internet to have the same output content bit by bit, i.e deterministic. Apparently, for complicated reasons, Git clones are not deterministic, and we investigate this issue in NixOS/nixpkgs#8567 . |
@hhrutter the same panic occurs if you install pdfcpu directly as in the readme |
👍🏻 Thanks for pointing that out. Will check.. |
When trying to update the pdfcpu package in nixpkgs to 0.6.0 the installCheck fails. The issue is reproducible when deactivating the installCheck and running
pdfcpu version
manually:Thank you for submitting a possible bug!
Please ensure the following:
commitreleaseWhen reporting a problem with a specific PDF input file please avoid stating the organization responsible for the PDFWriter - just refer to the PDFWriterThe text was updated successfully, but these errors were encountered: