-
Notifications
You must be signed in to change notification settings - Fork 0
Dev setup
Jean-Baptiste Caillau edited this page Apr 3, 2023
·
18 revisions
- add, if necessary, local (= non officially registered packages) according to (SSH)
pkg> registry add git@github.com:control-toolbox/ct-registry.git
Cloning registry from "git@github.com:control-toolbox/ct-registry.git"
Added registry `ct-registry` to `~/.julia/registries/ct-registry`or (HTTP)
pkg> registry add https://github.com/control-toolbox/ct-registry.git- either use a stable version of a package (pinned version using
Project.toml)
pkg> add MyPackage- or use an under development one (referenced either from a local path, or from a git repo):
pkg> dev /home/user/OptimalControl.jl
Resolving package versions...- to go back to a registered version, do
pkg> free OptimalControl.jl- as a developer, activate the project from its root dir (containing
Project.toml)
pkg> activate .- followed by an (to create the
Manifest.toml)
pkg> instantiate- and run the test like this
pkg> test- or from the shell
julia --project=. -e 'using Pkg; Pkg.test()' |& tee -a /tmp/log- as a user, I just want to use the developed package, for instance inside a notebook:
using MyPackage- to use a module that is inside the current project
using .MyModule