GithubHelp home page GithubHelp logo

noxsios / pantry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pkgxdev/pantry

0.0 0.0 0.0 4.35 MB

pkg manifests

Home Page: https://pkgx.dev/pkgs/

Shell 7.79% JavaScript 0.13% C++ 8.20% Python 0.87% C 80.89% Emacs Lisp 0.06% Java 0.13% Lua 0.18% Fortran 0.91% Tcl 0.34% Go 0.09% Vala 0.02% Kotlin 0.02% Julia 0.01% TeX 0.04% Makefile 0.08% Thrift 0.04% PostScript 0.03% QMake 0.10% Mako 0.04%

pantry's Introduction

pkgx

pkg metadata and build instructions.

Contributing

Assuming you have pkgx with shell integration:

$ git clone https://github.com/pkgxdev/pantry

$ cd pantry

$ dev  # https://docs.pkgx.sh/dev
# ^^ adds brewkit (ie. the `bk` command) to your devenv
# ^^ IMPORTANT! Otherwise the `bk` command will not be found

$ bk init
# ^^ creates a “wip” package.yml
# ^^ if you already know the name, you can pass it as an argument

$ bk edit
# ^^ opens the new package.yml in your EDITOR

$ bk build
# builds to `./builds`
# ^^ needs a zero permissions GITHUB_TOKEN to use the GitHub API
# either set `GITHUB_TOKEN` or run `gh auth login`

$ pkgx yq .provides <projects/$(bk status | tr -d '[:space:]')/package.yml
- bin/foo
# ^^ purely demonstrative for the next step

$ pkgx foo
# ^^ anything in the `provides:` key will now run

$ bk audit
# ^^ worth doing an audit to check for common pkging issues

$ bk test
# ^^ you need to write a test that verifies the package works

$ gh repo fork
$ git branch -m my-new-package
$ git push origin my-new-package
$ gh pr create

Tip

  • bk build and bk test can be invoked eg. bk docker build to run inside a Docker container for Linux builds and testing
  • All commands take an optional pkg-spec eg. bk build node@19
  • While inside the pantry dev environment you can run commands from any built packages provided you specified their provides: key in the package.yml.

Note

We use a special package called brewkit to build packages both here and in CI/CD. brewkit provides the bk command.

Important

brewkit installs the built products to ${PKGX_DIR:-$HOME/.pkgx} which means they are installed to your user’s pkgx cache.

GitHub Codespaces

pantry also works in GitHub Codespaces. The default configuration provided with the repository will install/update pkgx at the time you attach, so you should be able to quickly work on test packages in a remote linux environment (or work from a device with just a web browser).

Packaging Guide

Packaging can be cumbersome. Our wiki is our packaging knowledge base. For other assistance, start a discussion.

The best way to figure out solutions for your problems is to read other examples from the pantry.

After Your Contribution

We build “bottles” (tar’d binaries) and upload them to our CDN. Thus your contribution will be available at merge-time + build-time + CDN distribution time.

pkgx should automatically sync the pantry to your local machine if you ask for something it doesn’t know about, but in the case where that fails do a pkgx --sync first.

Note

The pantry automatically builds new releases of packages as soon as they are released (usually starting the builds within seconds). There is no need to submit PRs for updates.

Note that while in the pantry dev environment you can use your new package if you built it. However this will not work outside the pantry dev unless you either:

  1. You set PKGX_PANTRY_PATH
  2. Get your PR merged!

Working on Other People’s Pull Requests

Packaging can be fiddly so we all pitch in. If you want to help someone else with their pull request then you can use GitHub’s CLI:

$ gh pr checkout 123

# or you can copy paste the URL:
$ gh pr checkout https://github.com/pkgxdev/pantry/pull/123

# then open for editing:
$ bk edit

pantry's People

Contributors

abevier avatar and-ri avatar aslafy-z avatar branchvincent avatar davdroman avatar dcvz avatar ddobrinskiy avatar getneil avatar j1philli avatar jasonmorganson avatar jhheider avatar johnallen3d avatar jonchang avatar jrgoodle avatar kevinmichaelchen avatar kevmo314 avatar magnusviri avatar markuszoppelt avatar mfts avatar mxcl avatar mycreepy avatar neilgoldman avatar pedrocruzio avatar penguwin avatar ranok avatar rustdevbtw avatar sanchitram1 avatar scottjg avatar tannevaled avatar uesyn avatar

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.