Skip to content

Fix dagger-cue installation doc DAGGER_VERSION to DAGGER - #3708

Merged
jpadams merged 1 commit into
dagger:mainfrom
guiyomh:guiyomh-patch-1
Nov 9, 2022
Merged

jpadams merged 1 commit into
dagger:mainfrom
guiyomh:guiyomh-patch-1

Conversation

@guiyomh

@guiyomh guiyomh commented Nov 5, 2022

Copy link
Copy Markdown
Contributor

I saw that in the documentation they talk about DAGGER_VERSION to specify the version to install. But it doesn't work.
After reading the script, I saw that the parameter was renamed to VERSION. Probably when renaming dagger to dagger-cue.

So I'm making a small PR to correct the documentation.

@jpadams

jpadams commented Nov 9, 2022

Copy link
Copy Markdown
Contributor

Thanks @guiyomh! Reviewing now.

@jpadams

jpadams commented Nov 9, 2022

Copy link
Copy Markdown
Contributor

Agreed that for the new dagger-cue, the install.sh script uses VERSION:

$ curl -s -L https://dl.dagger.io/dagger-cue/install.sh | grep VERSION
    version="${VERSION:-$(latest_version)}"
    version="${VERSION:-$(latest_version)}"

For old v0.2.x dagger it is still DAGGER_VERSION:

$ curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.2.28 sh
$ dagger version
dagger 0.2.28 (41b7d6190) linux/arm64

$ curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.2.36 sh
$ dagger version
dagger 0.2.36 (ea275a3ba) linux/arm64
$ curl -s -L https://dl.dagger.io/dagger/install.sh | grep VERSION
    version="${DAGGER_VERSION:-$(latest_version)}"
    version="${DAGGER_VERSION:-$(latest_version)}"

@jpadams jpadams left a comment

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.

LGTM! Verified. Thank you!

@jpadams
jpadams merged commit 5f64fea into dagger:main Nov 9, 2022
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.

2 participants