Repository navigation
docs: Resolve Dagger version dynamically - #2369
Conversation
|
I still don't understand the reasoning behind putting the dagger binary version inside the docs -- what problem are we solving?
|
@aluzzardi do you mean that : |
We are hard-coding the version of the latest dagger CLI release in various places, as initially captured in #1854 (we have added a few more since then). We are doing this so that we have deterministic starting points for code examples, or linking to specific parts of our codebase.
No version means
Using
There are situations when we are publishing docs for an unreleased version of Dagger. In that case, we don't use the latest released version which gets dynamically resolved, but a specific version, e.g.
Yes, that is definitely one of the follow-ups. In that case, I am wondering whether we want to keep an outdated version of dagger in the docs (which is what we are doing currently, before this PR), or if we expect readers to notice the discrepancy and submit improvements to the examples. For the past month, they have been submitting bumps to the dagger version, as captured in the PRs linked to the issues referenced in the top comment. |
I believe this only affects No other documentation page would reference
Were we following the same structure (
Just on a single docs page. There's no relationship between Again, I don't understand the problem that's being solved. It would be helpful to see an example of a broken scenario that's fixed by DAGGER_VERSION.
|
|
Talking to @aluzzardi this is what we settled on:
Where we use In conclusion, continue as proposed with this. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
I am picking this one up again. Will ask for your review @slumbering as soon as everything is green. Would be great to get it merged today. |
|
|
||
| <TabItem value="gitlab"> | ||
|
|
||
| ```yaml |
There was a problem hiding this comment.
I just got to the same issue now. Resolved all conflicts, including issues with my node install & node-fetch.
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This one has been going on for too long 🎡 We are planning to get it merged with @slumbering on July 25th. I'm going to solve the conflicts now and transition it from |
This will fetch the version from https://dl.dagger.io/dagger/latest_version and template it in all doc pages on deploy. Resolves #1854 Resolves #2205 Resolves #2351 Signed-off-by: Gerhard Lazu <[email protected]> docs: fix dagger function call within markdown Signed-off-by: Jffarge <[email protected]> docs: fetch latest released version from GitHub Based on https://github.com/parca-dev/docs/blob/9586ba479acb5f42e29da1845a6d931c6b83c4b0/docusaurus-github-releases-plugin/src/index.js Signed-off-by: Gerhard Lazu <[email protected]> Bump DAGGER_VERSION in YAML configs to latest This is the only value that we couldn't figure out how to template so far. Defer to follow-up PR. Signed-off-by: Gerhard Lazu <[email protected]> Manually bump Dagger version in Dagger CI workflow This should remain as is. Signed-off-by: Gerhard Lazu <[email protected]> docs: Bump BuildKit version in links to the latest one Signed-off-by: Gerhard Lazu <[email protected]> Default DaggerVersionLatestReleased value to something obviously wrong Signed-off-by: Gerhard Lazu <[email protected]>
slumbering
left a comment
There was a problem hiding this comment.
Let's merge it and fix the 1201-ci-environment in an other PR
This will fetch the version from https://dl.dagger.io/dagger/latest_version and template it in all doc pages on deploy.
Resolves #1854
Resolves #2205
Resolves #2351
The only thing which remains is to figure out how to template this version in the YAML snippets, e.g. https://github.com/dagger/dagger/pull/2369/files#diff-e309255ddd52101788f3de79596d0b93496c72d4b04059e44154f9e12b63e4d0R134