Git Product home page Git Product logo

Comments (4)

dvershinin avatar dvershinin commented on September 25, 2024

@rodrigoaguilera as I'm not familiar with Alpine, can you please explain in further detail?
Isn't there a command like apk upgrade <pkg name> to do what you want?

from lastversion.

rodrigoaguilera avatar rodrigoaguilera commented on September 25, 2024

Sure I can explain.
I have a dockerfile that fixes the versions of packages so instead of having steps like apk add <pkg name> I add the version like apk add <pkg name>=<current version>. This way I have no surprises when package is updated and I can track package upgrades in version control.
I use lastversion to be able to automate the process that edits the dockerfile with the latest versions but sometime there is a mismatch between the upstream and what is in alpine package repository so that is why I want to know what is the "lastversion" in alpine.

from lastversion.

dvershinin avatar dvershinin commented on September 25, 2024

@rodrigoaguilera I guess this won't be implemented for the time being. I've checked if there's something easily parseable like rss feed for package updates, but there's none there. Parsing HTML I'd like to avoid, as a different website layout will yield broken fetching of the versions... Unless you have other ideas than parsing that page :)

from lastversion.

rodrigoaguilera avatar rodrigoaguilera commented on September 25, 2024

I understand is a big effort.
An alternative to parsing HTML is to fetch the APKBUILD file for the package and from there read the pkgver and pkgrel variables. With those you can build the version but the alpine version also needs to be provided somehow to fetch the APKBUILD file from a specific release. An example:
https://git.alpinelinux.org/aports/tree/main/git/APKBUILD?h=3.17-stable

I don't have the bandwidth right now to contribute this change to lastversion just dropping an idea that doesn't involve HTML.

from lastversion.

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.