Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

official wat to list prebuilt binaries #5122

Closed
bmeck opened this issue Mar 22, 2013 · 2 comments
Closed

official wat to list prebuilt binaries #5122

bmeck opened this issue Mar 22, 2013 · 2 comments

Comments

@bmeck
Copy link
Member

bmeck commented Mar 22, 2013

right now nvm and n are scraping nodejs.org/dist to figure out what versions are available, listing these rather than scrapping would be really nice. especially when performing a simple replication only on specific semver versions.

@bmeck
Copy link
Member Author

bmeck commented Mar 25, 2013

An example on how to do this semi-properly (does not work on windows)

  NODE_REPO=${NODE_REPO:="https://github.com/joyent/node.git"}
  local tags=$(git ls-remote --tags "$NODE_REPO" | awk '{print $2}' | grep -Ev '\^\{\}$' | sed 's/^refs\/tags\///');
  if [ "$1" != "all" ]; then
    tags=$(echo "$tags" | grep -E '^v[0-9]+.[0-9]+.[0-9]+$')
  fi
  echo "$tags"

@jasnell
Copy link
Member

jasnell commented Jun 22, 2015

Closing. Would defer to either nodejs/build or nodejs/website WGs

@jasnell jasnell closed this as completed Jun 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants