Skip to content

Commit

Permalink
Start a nupm package registry (#68)
Browse files Browse the repository at this point in the history
<!-- related issues, e.g. "will close #123" -->

## Description
<!-- describe in a few words the changes -->

This adds a registry for nupm packages following a format proposed in
#56.

I'm making a separate PR to allow testing
#56 before merging it.
  • Loading branch information
kubouch authored Jan 31, 2024
1 parent c54b077 commit afb85a1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions registry.nuon
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Registry is a NUON file that tells nupm where to look for packages
#
# Currently, these package types are supported:
# * git ..... package is an online git repository
# * local ... package is on a local filesystem
#
# The package type defines the columns of the registry record. Each column holds
# holds a table of packages.
#
# Git packages accept the following columns:
# * name ....... name of the package
# * version .... version of the package
# * url ........ Git URL of the package
# * revision ... Git revision to check out when installing the package (commit
# hash, version, branch name, ...)
# * path ....... Path relative to the repository root where to look for nupm.nuon
#
# Local packages accept the following columns:
# * name ....... name of the package
# * version .... version of the package
# * path ....... Path where to look for nupm.nuon. It can be absolute, or
# relative. If relative, then relative to the registry file.
#
# One registry can contain packages with the same name, but they must be of
# different version.

{
git: [
[name version url revision path];
[
nu-git-manager
0.5.0
https://github.com/amtoine/nu-git-manager.git
0.5.0
pkgs/nu-git-manager
]

[
nu-git-manager-sugar
0.5.0
https://github.com/amtoine/nu-git-manager.git
0.5.0
pkgs/nu-git-manager-sugar
]
]
}

0 comments on commit afb85a1

Please sign in to comment.