Skip to content

stdlib: removed references to @dagger attributes in favor of definitions - #998

Closed
samalba wants to merge 5 commits into
dagger:mainfrom
samalba:stdlib-unifi-inputs-outputs
Closed

samalba wants to merge 5 commits into
dagger:mainfrom
samalba:stdlib-unifi-inputs-outputs

Conversation

@samalba

@samalba samalba commented Sep 21, 2021 •

Copy link
Copy Markdown
Contributor

This removes all @dagger(input) and @dagger(output) attributes in favor of corresponding definitions.

Fixes #783

@netlify

netlify Bot commented Sep 21, 2021

Copy link
Copy Markdown

@samalba
samalba requested a review from aluzzardi September 21, 2021 19:50
@samalba

samalba commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

Ready to go

Comment thread docs/reference/go.md
|*version* | `*"1.16" \| string` |Go version to use |
|*source* | `dagger.#Artifact` |Source code |
|*image.from* | `"docker.io/golang:1.16-alpine"` |Remote ref (example: "index.docker.io/alpine:latest") |
|*mount."/src".from* | `dagger.#Artifact` |- |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is weird -- every #Artifact is showing up as an input (here and if you look at every .md change).

Is there a way to avoid this? I think it makes the docs pretty confusing

@samalba

samalba commented Sep 21, 2021

Copy link
Copy Markdown
Contributor Author

So it appears that using dagger.#Input vs the attribute @dagger(input) flags recursively all sub-references as input. So moving to this syntax adds a lot of noise both on the input list and the doc generated.

I haven't found a fix yet, not sure if there is one. Let's wait to merge this then.

@samalba samalba mentioned this pull request Sep 22, 2021
@samalba samalba closed this Oct 12, 2021
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.

Update inputs style

2 participants