-
Notifications
You must be signed in to change notification settings - Fork 721
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
[BUG] - CLI is not allowing process substitution on certain commands #4235
Comments
The output redirection to the stdout is not working for the VRF-Key creation! $ cardano-cli node key-gen-VRF --verification-key-file "test.vrf.vkey" --signing-key-file /dev/stdout
cardano-cli-1.35.3-rc1: /dev/: openTempFile: permission denied (Permission denied) Why the heck on earth wants cardano-cli to write a TempFile in the path given for the output signing key!? Issue is most likely caused by libsodium. |
It's actually caused by |
Issue unsolvedSetting up a variable
Tested on tag 1.35.4-rc1
Command failed: transaction txid Error: Failed to decode neither the cli's serialisation format nor the ledger's CDDL serialisation format. TextEnvelope error: /dev/fd/63: TextEnvelope aeson decode error: Error in $: not enough input
TextEnvelopeCddl error: /dev/fd/63: Could not JSON decode TextEnvelopeCddl file at: /dev/fd/63 Error: Error in $: not enough input If you write out the content to a file and use the filename it works. a2e58d1b59d8c06535a1134f0022b1c77b5dc679248f635197546b6855830730 Tested on latest master
cardano-cli: TODO
CallStack (from HasCallStack):
error, called at src/Cardano/CLI/Shelley/Run/Transaction.hs:212:32 in cardano-cli-1.36.0-LXoqbxN0MejLJIylH9D3mJ:Cardano.CLI.Shelley.Run.Transaction(.env) If you write out the content to a file and use the filename it works. a2e58d1b59d8c06535a1134f0022b1c77b5dc679248f635197546b6855830730 |
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes #4235 Make prop_readFromPipe assertion more strict
Fixes #4235 Make prop_readFromPipe assertion more strict
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=newhoggy a=LudvikGalois Fixes #4235 Co-authored-by: Robert 'Probie' Offner <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=newhoggy a=LudvikGalois Fixes #4235 Co-authored-by: Robert 'Probie' Offner <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=newhoggy a=LudvikGalois Fixes #4235 Co-authored-by: Robert 'Probie' Offner <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=Jimbo4350 a=LudvikGalois Fixes #4235 4682: Export `fromShelleyBasedScript` from Cardano.Api r=Jimbo4350 a=eyeinsky New PR based off of a branch in this repo. Old PR here #4386 Co-authored-by: Robert 'Probie' Offner <[email protected]> Co-authored-by: Markus Läll <[email protected]>
4625: Handle pipes r=Jimbo4350 a=LudvikGalois Fixes #4235 4908: Added features to tracing r=jutaro a=jutaro * Generated docu shows tracers, tracers with metrics, silent tracers according to current configuration * Trace message shows tracers with metrics and silent tracers Co-authored-by: Robert 'Probie' Offner <[email protected]> Co-authored-by: Yupanqui <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=newhoggy a=LudvikGalois Fixes #4235 4908: Added features to tracing r=jutaro a=jutaro * Generated docu shows tracers, tracers with metrics, silent tracers according to current configuration * Trace message shows tracers with metrics and silent tracers Co-authored-by: Robert 'Probie' Offner <[email protected]> Co-authored-by: Yupanqui <[email protected]>
Fixes #4235 Co-authored-by: John Ky <[email protected]>
Fixes IntersectMBO/cardano-node#4235 Co-authored-by: John Ky <[email protected]>
Fixes IntersectMBO/cardano-node#4235 Co-authored-by: John Ky <[email protected]>
4625: Handle pipes r=newhoggy a=LudvikGalois Fixes IntersectMBO/cardano-node#4235 4908: Added features to tracing r=jutaro a=jutaro * Generated docu shows tracers, tracers with metrics, silent tracers according to current configuration * Trace message shows tracers with metrics and silent tracers Co-authored-by: Robert 'Probie' Offner <[email protected]> Co-authored-by: Yupanqui <[email protected]>
Cardano-CLI 1.34.1
In the past it was no problem to use a common practice in linux to not write out files directly (if you only need them in ram) and use a process substitution -> file handler instead.
For some commands in the CLI this is still working like (example):
Setting up the variables
protocolParametersJSON=
txBodyFile="/home/user/mytransaction.txbody"; txcnt=1; rxcnt=2; magicparam="--mainnet"; etc ...
Executing the command
The part i am talking about is
<(echo "${protocolParametersJSON}")
, this is working fine for the command above. 👍But in other commands for example for the tx-file content, this is not working anymore:
Setting up a variable
txFileJSON=
Executing the command
Results into the following error 😢
So this is not working anymore. If you write out the content to a file and use the filename it works.
But why/how was this changed? It worked in previous versions of the CLI.
As a simple demo that it is not an OS issue we create a simple script that is showing the content of a file:
showfile.sh:
Execute the script with the process substitution like above:
All good. So, something changed in the CLI and it would be good to fix it so it can be used like any other linux program together with process substitution on all parameters.
The text was updated successfully, but these errors were encountered: