Git Product home page Git Product logo

Comments (9)

chrissie1 avatar chrissie1 commented on June 2, 2024

there is a cver all -localonly but it seems slow. But does that do a better job?

I have an IComparer at work that could serve this purpose. Then it would become versionQuery.ToList().Sort(New VersionComparer).Last();

I'll if I can adapt the comparer to do what we need. And write the needed unittests.

from chocolateygui.

cemrich avatar cemrich commented on June 2, 2024

cver all -localonly works fine. But it's really not very fast. Yes, a VersionComparer would work fine I think.

from chocolateygui.

chrissie1 avatar chrissie1 commented on June 2, 2024

added failing tests for this.

from chocolateygui.

tarwn avatar tarwn commented on June 2, 2024

@chrissie1: Did you purposefully remove the file system service from the PackageManager during this commit? It looks like it was still there in your prior commit, but then it went away in this one and the dialog boxes during tests came back. I'd add it back in, but it looked like you might have done it on purpose and didn't want to get in a commit fight :)

from chocolateygui.

chrissie1 avatar chrissie1 commented on June 2, 2024

Nope thats was accidental, git messed up the merge, i guess, yeah it was git's fault

from chocolateygui.

gep13 avatar gep13 commented on June 2, 2024

FIGHT, FIGHT, FIGHT!!! :-)

from chocolateygui.

chrissie1 avatar chrissie1 commented on June 2, 2024

@cemrich Here is the gist to the comparer. Needs some more tests but I think it should work. Based on the full packagename. https://gist.github.com/chrissie1/4959638

from chocolateygui.

tarwn avatar tarwn commented on June 2, 2024

All fixed.

@chrissie1 are those 4 package name parsing tests added for this issue or a different one? I can fix them to properly parse out name, version, and pre but wouldn't want to step on any work being done to manage the sorting.

Also, should there have a been a link to the gist you just mentioned somewhere?

from chocolateygui.

chrissie1 avatar chrissie1 commented on June 2, 2024

The link is there. You need to look better.

I think they are unrelated. This one is about the fact that The .Last() call did not give the correct version because it does stringsorting. So I made the sorter to sort them correctly so that you can find the last version more easily. My sorter is based on the directoryname but it easily adapted to work on a Package

from chocolateygui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.