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

v1: uninstall if needed during install #1111

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

felipecrs
Copy link
Contributor

@felipecrs
Copy link
Contributor Author

felipecrs commented Feb 5, 2025

@mxcl I promise this is the last fix I need for pkgx v1 (and then I'll focus to migrate to pkgx v2).

@coveralls
Copy link

Coverage Status

coverage: 92.163% (-0.07%) from 92.23%
when pulling cc71694 on felipecrs:uninstall-if-needed
into 3f2b858 on pkgxdev:v1/main.

@felipecrs
Copy link
Contributor Author

This coverage report is a false negative. I'm sure I didn't decrease coverage.

@felipecrs
Copy link
Contributor Author

felipecrs commented Feb 6, 2025

@mxcl, this is a gentle ping.

To test this PR, confirm it wasn't working before:

$ deno task run install openjdk.org@17 && deno task run install openjdk.org@21
# first installation succeeds
# second fails because openjdk.org@17 was already installed

Then, clone this PR and repeat.

@mxcl
Copy link
Member

mxcl commented Feb 7, 2025

I have disabled coveralls from failing PRs since they apparently can’t pick defaults that aren’t insane and despite many attempts to stop it being insane (by tweaking settings) its insanity prevails.

@felipecrs
Copy link
Contributor Author

felipecrs commented Feb 7, 2025

I have disabled coveralls from failing PRs since they apparently can’t pick defaults that aren’t insane and despite many attempts to stop it being insane (by tweaking settings) its insanity prevails.

I have the exact same problem using SonarQube for internal projects. It's just insanity, it never works well (comparing coverage of a PR against the coverage of target branch).

I'd personally avoid any tools like that and instead favor good old CLI tools that will collect the coverage for the whole code base and return 0 or not. Some of them have deeper integration with GitHub Actions allow to provide highlight on the lines missing coverage directly in GitHub. I don't know anything about Rust tooling, though.

@mxcl mxcl merged commit fa0caa3 into pkgxdev:v1/main Feb 7, 2025
6 of 8 checks passed
@felipecrs felipecrs deleted the uninstall-if-needed branch February 7, 2025 16:45
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