Skip to content

Fix DecodeSecret output type#2024

Merged
aluzzardi merged 1 commit intodagger:mainfrom
helderco:decodesecret-type
Apr 27, 2022
Merged

Fix DecodeSecret output type#2024
aluzzardi merged 1 commit intodagger:mainfrom
helderco:decodesecret-type

Conversation

@helderco
Copy link
Copy Markdown
Contributor

@helderco helderco commented Apr 4, 2022

Fixes #1867

Signed-off-by: Helder Correia

@helderco helderco requested a review from shykes as a code owner April 4, 2022 14:02
@helderco helderco marked this pull request as draft April 4, 2022 14:06
@helderco helderco force-pushed the decodesecret-type branch 3 times, most recently from c4dcc2d to cdc17a8 Compare April 5, 2022 15:57
@helderco
Copy link
Copy Markdown
Contributor Author

helderco commented Apr 6, 2022

Not sure what's wrong. Fixes the linked issue but tests are failing with "secret not set" and I don't know why yet.

Tested type with https://cuelang.org/play/?id=-n61uazTm6r#cue@export@json

@gerhard
Copy link
Copy Markdown
Contributor

gerhard commented Apr 13, 2022

Is there anything obviously wrong to you @jlongtine @aluzzardi @shykes? I can't see it either @helderco 🤔

@helderco
Copy link
Copy Markdown
Contributor Author

helderco commented Apr 26, 2022

What's happening is that the output disjunction isn't being resolved when using this fix in some cases. It works for #1867, but breaks in some other tests, e.g., #GitPull.

The difference may be because of the contents of the encrypted yaml file, wether it has nested keys or not.

This is a workaround until we get a better solution from upstream.

Signed-off-by: Helder Correia <[email protected]>
@helderco helderco force-pushed the decodesecret-type branch from cdc17a8 to cb8ad64 Compare April 27, 2022 16:12
@helderco helderco marked this pull request as ready for review April 27, 2022 16:30
@helderco
Copy link
Copy Markdown
Contributor Author

This is a workaround just to unblock, until we have a better solution. Needed for #2265 as well.

Copy link
Copy Markdown
Contributor

@jlongtine jlongtine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not my favorite change (I'd prefer we keep the schema...) but given the constraints, I think we should move forward with this for now.

@helderco helderco mentioned this pull request Apr 27, 2022
@aluzzardi aluzzardi merged commit fd64625 into dagger:main Apr 27, 2022
@helderco helderco deleted the decodesecret-type branch April 27, 2022 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Structural cycle when dagger do --with and dagger.#DecodeSecret are conjointly used

4 participants