Coder Social home page Coder Social logo

kpcyrd / updlockfiles Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 1.0 35 KB

Manage lockfiles in PKGBUILDs for upstreams that don't ship them, `updpkgsums` for dependency trees (Arch Linux tooling)

License: GNU General Public License v3.0

Shell 24.54% Rust 75.46%
archlinux supply-chain-security reproducible-builds

updlockfiles's Introduction

updlockfiles

Manage lockfiles for packages that don't ship any upstream. Like updpkgsums but for 3rd party dependency trees.

If you're not actively maintaining Arch Linux packages you likely don't need this tool.

Getting started

Add a function like this to your PKGBUILD:

updlockfiles() {
  cd ${pkgname}
  rm -f composer.lock
  composer update
  cp composer.lock "${outdir}/"
}

This works for arbitrary files, just make sure the files you want copied back need to be copied into $outdir.

Next run this command (no arguments needed, the default should just work):

updlockfiles

Finally add the new file to your source array (and make sure it's part of your next commit!):

source=("git+https://github.com/vimeo/psalm.git#commit=${_commit}"
        "composer.lock")

Update the checksums for content pinning:

updpkgsums

Update a lockfile

If the initial setup was done before you can generate a new lockfile of the latest patch level like this:

updlockfiles

License

GPLv3+

updlockfiles's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kursh

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.