Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: outdated cmd wasn't check for real new versions#2528

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
guerinoni wants to merge1 commit intojetify-com:main
base:main
Choose a base branch
Loading
fromguerinoni:fix-outdated

Conversation

guerinoni
Copy link
Contributor

@guerinoniguerinoni commentedFeb 19, 2025
edited
Loading

Summary

Previously this only checks on lockfile.

How was it tested?

Manually on a project I'm working on, and I figured out it was not working correctly.

@@ -80,6 +90,32 @@ func (d *Devbox) Outdated(ctx context.Context) (map[string]UpdateVersion, error)
return outdatedPackages, nil
}

// isGreater returns true if v1 is greater than v2
func isGreater(v1, v2 string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wish it was this simple :(

Unfortunately, nix package versions don't follow any convention. Some (many) use semver, but many do not.

We have some pretty complicated logic to try to do this on the search server. I can look into open sourcing it so you can use it here.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Let me know, for now this can be enough for doing this dirty job :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mikeland73mikeland73mikeland73 left review comments

@gcurtisgcurtisAwaiting requested review from gcurtis

@ipinceipinceAwaiting requested review from ipince

@LucilleHLucilleHAwaiting requested review from LucilleH

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@guerinoni@mikeland73

[8]ページ先頭

©2009-2025 Movatter.jp