You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A secret that contains a $ character results in an error when running a task configured to use the secret. The problem looks to be that that when the .nf-XXX.secrets file is generated, it contains export commands with double-quoted rather than single-quoted values.
Expected behavior and actual behavior
I expect that there will be no restrictions on the characters that I can store in secrets.
@pditommaso, was there a specific rationale for using double quotes in the export definitions of secrets?
At this stage, I am considering whether one of these might be a viable solution (still under investigation):
use single quotes instead of double quotes in the secrets file definition
allow flexibility via specific nextflow secrets set option, e.g. --single-quote or similar
allow flexibility by mirroring Bash export behaviour, and hence adapt definition based on the string input by the user (does the user string contain single vs double quotes?)
Bug report
A secret that contains a
$
character results in an error when running a task configured to use the secret. The problem looks to be that that when the.nf-XXX.secrets
file is generated, it contains export commands with double-quoted rather than single-quoted values.Expected behavior and actual behavior
I expect that there will be no restrictions on the characters that I can store in secrets.
Steps to reproduce the problem
main.nf
:Program output
/dev/stdin: line 2: bar: unbound variable
The
~/.nextflow/secrets/.nf-XXX.secrets
file contains:Environment
The text was updated successfully, but these errors were encountered: