8000 Check the rustup version by fgsch · Pull Request #248 · fastly/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check the rustup version #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2021
Merged

Check the rustup version #248

merged 3 commits into from
Apr 14, 2021

Conversation

fgsch
Copy link
Member
@fgsch fgsch commented Apr 12, 2021

Turns out, the toolchain section is only available in rustup 1.23.0 and higher.

Fixes #137.

@fgsch fgsch force-pushed the fgsch/check-rustup-version branch 2 times, most recently from 561940f to 059e74b Compare April 12, 2021 16:19
Copy link
Collaborator
@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

The code looks fine to me but I think the constraint ">= 1.23.0" should be part of the dynamic configuration (e.g. inside the language.rust section of https://developer.fastly.com/api/internal/cli-config).

This means updating https://github.com/fastly/cli/blob/master/pkg/config/data.go#L192-L204 to reflect a new rustup_constraint key set to >= 1.23.0, while also updating the internal dynamic configuration repo to publish an updated config with this value added.

NOTE: the reason I suggest including the constraint syntax >= and not just the expected version 1.23.0 is because it provides more control to the team responsible for handling the rust dependencies (for example, the team had previously requested for fastly_sys_constraint to be set to ">= 0.3.3 < 0.5.0" rather than just a specific version). I appreciate that was to solve a different kind of coupling issue but I think I still the prefer the flexibility of this being inside the dynamic config if a change was necessary in future.

cc @acfoltzer and @cratelyn

@fgsch
Copy link
Member Author
fgsch commented Apr 13, 2021

The code looks fine to me but I think the constraint ">= 1.23.0" should be part of the dynamic configuration (e.g. inside the language.rust section of https://developer.fastly.com/api/internal/cli-config).

I was not aware of this but I agree. I will update the PR. Thank you.

@fgsch fgsch force-pushed the fgsch/check-rustup-version branch from d5fe2c1 to 381b5ac Compare April 13, 2021 13:28
fgsch and others added 2 commits April 13, 2021 14:28
Turns out, the toolchain section is only available in rustup 1.23.0 and
higher.

Fixes #137.
Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com>
@fgsch fgsch force-pushed the fgsch/check-rustup-version branch from 381b5ac to a7ee451 Compare April 13, 2021 13:28
@fgsch fgsch force-pushed the fgsch/check-rustup-version branch from a7ee451 to d96e0ba Compare April 13, 2021 13:32
@fgsch fgsch requested a review from Integralist April 13, 2021 13:33
@acfoltzer
Copy link
Contributor

Looks good from the rustup semantics POV, thanks for the cc @Integralist!

@Integralist Integralist added the bug Something isn't working label Apr 13, 2021
Copy link
Collaborator
@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

LGTM. Let's get the dynamic config PR merged first and check the config endpoint is serving the updated configuration.

@Integralist Integralist merged commit 83d1f19 into master Apr 14, 2021
@Integralist Integralist deleted the fgsch/check-rustup-version branch April 14, 2021 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fastly compute build fails with "EOF"
3 participants
0