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
Today I bumped into an interesting issue - having a variable (commit hash), that is in form of number in scientific notation (2445e120) being interpreted by spruce as a number instead of keeping is as a string.
I could not find a way how to force spruce to keep it as string.
Can you guide me on what is the best way to achieve the expected output?
Issue
Hello,
Today I bumped into an interesting issue - having a variable (commit hash), that is in form of number in scientific notation (
2445e120
) being interpreted byspruce
as a number instead of keeping is as a string.I could not find a way how to force
spruce
to keep it as string.Can you guide me on what is the best way to achieve the expected output?
Fix trials
Using grab
Content of
test.yaml
Command
export CI_COMMIT_SHORT_SHA=2445e120 spruce merge test.yaml
Output
Expected Output
Using concat
Content of
test.yaml
Command
export CI_COMMIT_SHORT_SHA=2445e120 spruce merge test.yaml
Output
Expected Output
Context
Spruce version: v1.31.0
The text was updated successfully, but these errors were encountered: