Navigation Menu

Skip to content
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

feat: upgrade elvish to 0.17.0 #1159

Merged
merged 7 commits into from Feb 11, 2022
Merged

feat: upgrade elvish to 0.17.0 #1159

merged 7 commits into from Feb 11, 2022

Conversation

brunoroque06
Copy link
Contributor

@brunoroque06 brunoroque06 commented Jan 13, 2022

Summary

With version 0.17 of elvish some new syntax was introduced (https://elv.sh/blog/0.17.0-release-notes.html). The one we currently use is deprecated, and will be removed in version 0.18. I just ran the official upgrader script (https://github.com/elves/upgrade-scripts-for-0.17) on the Elvish code.

asdf.elv Outdated Show resolved Hide resolved
asdf.elv Outdated Show resolved Hide resolved
asdf.elv Outdated Show resolved Hide resolved
@cherryblossom000
Copy link
Contributor

This isn't related to the Elvish v0.17.0 upgrade but fn asdf [@args]{_asdf:asdf $@args} in the installation docs could be replaced with var asdf~ = $_asdf:asdf~. A bit out of scope for this PR though.

Copy link
Member

@Stratus3D Stratus3D left a comment

Choose a reason for hiding this comment

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

Sorry for the late review @brunoroque06, thanks for the PR!

I think @cherryblossom000 has some great comments that should be addressed. Otherwise looks good to me!

@brunoroque06
Copy link
Contributor Author

This isn't related to the Elvish v0.17.0 upgrade but fn asdf [@args]{_asdf:asdf $@args} in the installation docs could be replaced with var asdf~ = $_asdf:asdf~. A bit out of scope for this PR though.

I changed this as well. I don't think we need to delay this to another commit. What do you think?

@cherryblossom000
Copy link
Contributor

I changed this as well. I don't think we need to delay this to another commit. What do you think?

LGTM!

Also, as no one seems to have mentioned it yet, this PR is technically a breaking change as it will drop support for Elvish versions prior to v0.17.0.

Copy link
Contributor

@cherryblossom000 cherryblossom000 left a comment

Choose a reason for hiding this comment

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

Sorry, I just noticed the legacy assignment syntax in the tests

test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
test/asdf_elvish.bats Outdated Show resolved Hide resolved
Copy link
Contributor

@cherryblossom000 cherryblossom000 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Stratus3D Stratus3D merged commit 824550e into asdf-vm:master Feb 11, 2022
@Stratus3D
Copy link
Member

Thanks for the PR @brunoroque06 !

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.

None yet

3 participants