Skip to content

Commit

Permalink
Update STORE.md
Browse files Browse the repository at this point in the history
Only commit hashes used in git-resolved package ids
  • Loading branch information
zkochan authored Nov 28, 2016
1 parent cda42c0 commit 0a6f731
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spec/STORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,15 @@ registry.node-modules.io/@wmhilton/log/1.1.0
### Packages from git

`<git URL domain>/<git path>/<commit hash>`
or
`<git URL domain>/<git path>/<annotated tag>`
> zkochan: Is it OK to use git tags? Git tags are mutable. Someone can tag a different commit

E.g.: `github.com/alexGugel/ied/b246270b53e43f1dc469df0c9b9ce19bb881e932`

Commits and annotated tags corresponding to a semantic version are both usable.

Lightweight git tags and branches are not, because they are more likely to change.
Module installers should resolve git package references based on branch names or non-version tag names to
Module installers should resolve git package references based on branch names or tag names to
commit hashes prior to loading or retrieving from the store.

When updating dependencies, module installers should check whether there are new commit in the branch or
whether the git-tag points to a different commit.

### Tarballs

`<domain>/<path to tarball>`
Expand Down

0 comments on commit 0a6f731

Please sign in to comment.