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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document opam-lib use-cases before OPAM2 #2701
Comments
|
Doh! Missed the obvious one -- editing comment now. |
In Basically, this is the function, that we use to automate the release, it is pretty stupid: # ``release_package pkg old new url md5`` release a pkg by copying
# existing description and bumping version and archive url.
release_package() {
pkg=$1
old=$2
new=$3
url=$4
md5=$5
oldpath=packages/$pkg/$pkg.$old
newpath=packages/$pkg/$pkg.$new
echo "releasing $pkg from $oldpath to $newpath..."
mkdir -p $newpath
cp -r $oldpath/* $newpath
if [ $# -gt 3 ]; then
cat > $newpath/url <<EOF
archive: "$url"
checksum: "$md5"
EOF
fi
sed -i "s/^version:.*/version: \"$new\"/" $newpath/opam
git add $newpath
} Since, we're planning to release every month, we will eventually develop a better automation, as using the above procedure is rather tedious and error prone. |
I'd add:
Also, some remarks on the already cited ones:
|
Both |
👋 https://github.com/timbertson/opam2nix I hope to port to opam 2 sometime, but haven't found the time to investigate this yet. It's not a trivial integration, mostly because I need to parse a bunch of stuff from |
One of OPAM2's headline features is a comprehensive rewrite of the API to make it easier to consume (online doc). This is a good excuse to list the current users of opam-lib and to ensure that they are ported:
In OPAM, we have:
Unreleased or dev users:
There are also several CI scripts that depend on the CLI output of OPAM, so we need to ensure that they are compatible with OPAM2 or can discriminate based on version:
This issue is to track:
The text was updated successfully, but these errors were encountered: