Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 2.91 KB

README.md

File metadata and controls

72 lines (52 loc) · 2.91 KB

Green 🍏

Registry

Our registry is a tasty addition to the usual General Registry. We serve up a variety of flavorful packages that add some zest to your development experience. Whether you're seeking extra functionality or unique tools, we've got something juicy for everyone!

Note

These registers are used to organize work with packages that are developed and used within the #bhftbootcamp community. At the moment, there is no provision for adding third-party custom packages.

Installation

You can set registers in your julia environment through the package manager (for more information, see guide):

] registry add https://github.com/bhftbootcamp/Green.git

Or by running the following code in REPL:

using Pkg

Pkg.Registry.add(RegistrySpec(; url = "https://github.com/bhftbootcamp/Green.git"))

If you’ve followed the steps correctly, the registry should now be successfully added to your environment.

However, if you encounter any issues, please refer to the troubleshooting section or create an issue. Doing so may help us streamline the installation process!

Usage

Once you have installed Green registers in your Julia environment, you can install any package from #bhftbootcamp just as easily as any other package from General.

For example, let's install the NumExpr package:

] add NumExpr

Duplicate package names

If you find yourself in an environment with multiple registers containing packages that share identical names, you will be prompted by REPL:

pkg> add Doppelganger
There are multiple registered `Doppelganger` packages, choose one:
   Registry: General - Repo: https://... - UUID: ada51f47-...
 > Registry: Green - Repo: https://... - UUID: d0ee2183-...

Alternatively, you can directly specify the UUID either in package manager:

] add NumExpr=005f7402-6e25-4d9a-960d-a0ddd50a2fba

Or in REPL:

using Pkg

Pkg.add(; name = "NumExpr", uuid = "005f7402-6e25-4d9a-960d-a0ddd50a2fba")

Troubleshooting

If you are having trouble adding registers to your Julia environment due to ssh-agent or other limitations of the standard libgit2, you can set the following value to your system environment (MacOS/Linux):

export JULIA_PKG_USE_CLI_GIT=true

or (Windows):

set JULIA_PKG_USE_CLI_GIT=true

It will force Julia to use your system git instead of default libgit2 (Requires Julia v1.7). See this thread for more information.