Rofl public vars#705
Conversation
✅ Deploy Preview for oasisprotocol-cli canceled.
|
c08fc30 to
f39a94f
Compare
martintomazic
left a comment
There was a problem hiding this comment.
Followed the style and organisation 1:1 with oasis rofl secrets.
| prevConfig := *cliConfig.Global() | ||
| cliConfig.ResetDefaults() | ||
| t.Cleanup(func() { | ||
| *cliConfig.Global() = prevConfig | ||
| }) |
There was a problem hiding this comment.
NIT: existing global config makes things hard to test cleanly :((
f39a94f to
9dc9218
Compare
matevz
left a comment
There was a problem hiding this comment.
If you define a public var with the same name as the existing secret, Oasis CLI should fail.
9dc9218 to
e3c9919
Compare
Private variable name (if Note there is similar issue with secrets definitions overlapping between each other:
meaning cli should probably not allow setting |
matevz
left a comment
There was a problem hiding this comment.
Please also mention special env. metadata fields behavior in the ROFL manifest specs https://github.com/oasisprotocol/oasis-sdk/blob/main/docs/rofl/features/manifest.md
e3c9919 to
813ada8
Compare
You could also gather these variables under the same key, e.g. |
813ada8 to
b19304f
Compare
Same comments exists for the rest of the package.
b19304f to
17537ed
Compare
Part of oasisprotocol/oasis-sdk#2248.
Used public var instead of env to make sure people don't accidentally set secrets here.
Tested it with https://github.com/oasisprotocol/Honoroll/pull/440.