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: prompt to update plugins with breaking changes + options to skip prompts with ! #459

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

mrcjkb
Copy link
Member

@mrcjkb mrcjkb commented Jul 4, 2024

Closes #191

Stacked on #439 (already reviewed by @teto) to avoid merge conflicts.

@mrcjkb
Copy link
Member Author

mrcjkb commented Jul 4, 2024

  • Maybe we should also check for major version bumps when installing a rock that is already installed

@mrcjkb mrcjkb force-pushed the semver-prompts branch 2 times, most recently from 8fbdbb6 to 14a7efb Compare July 4, 2024 21:02
lua/rocks/commands.lua Outdated Show resolved Hide resolved
lua/rocks/commands.lua Outdated Show resolved Hide resolved
lua/rocks/commands.lua Outdated Show resolved Hide resolved
@mrcjkb mrcjkb requested a review from teto July 4, 2024 22:25
Copy link
Collaborator

@vhyrro vhyrro left a comment

Choose a reason for hiding this comment

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

Couldn't find anything to complain about. Code looks good to me, I like this change a lot :)

Comment on lines +185 to +193
return setmetatable({
name = rock.name,
version = version,
target_version = target_version,
}, {
__tostring = function()
return ("%s %s -> %s"):format(rock.name, tostring(version), tostring(target_version))
end,
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: love this use of metatables, wouldn't have thought of that

@mrcjkb mrcjkb merged commit 9944b38 into extra_luarocks_config Jul 5, 2024
10 checks passed
@mrcjkb mrcjkb deleted the semver-prompts branch July 5, 2024 15:02
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.

3 participants