Skip to content

Commit 482399a

Browse files
authored
Mention that standard libraries have a version number since 1.11 (#4363)
1 parent 844cb9c commit 482399a

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

docs/src/managing-packages.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,23 @@ The most frequently used is `add` and its usage is described first.
1010
In the Pkg REPL, packages can be added with the `add` command followed by the name of the package, for example:
1111

1212
```julia-repl
13-
(@v1.10) pkg> add JSON
14-
Installing known registries into `~/`
13+
(@v1.13) pkg> add JSON
1514
Resolving package versions...
16-
Installed Parsers ─ v2.4.0
17-
Installed JSON ──── v0.21.3
18-
Updating `~/.julia/environments/v1.10/Project.toml`
19-
[682c06a0] + JSON v0.21.3
20-
Updating `~/.julia/environments/v1.10/Manifest.toml`
21-
[682c06a0] + JSON v0.21.3
22-
[69de0a69] + Parsers v2.4.0
23-
[ade2ca70] + Dates
24-
[a63ad114] + Mmap
25-
[de0858da] + Printf
26-
[4ec0a83e] + Unicode
27-
Precompiling environment...
28-
2 dependencies successfully precompiled in 2 seconds
15+
Updating `~/.julia/environments/v1.13/Project.toml`
16+
[682c06a0] + JSON v0.21.4
17+
Updating `~/.julia/environments/v1.13/Manifest.toml`
18+
[682c06a0] + JSON v0.21.4
19+
[69de0a69] + Parsers v2.8.3
20+
[aea7be01] + PrecompileTools v1.3.2
21+
[21216c6a] + Preferences v1.5.0
22+
[ade2ca70] + Dates v1.11.0
23+
[a63ad114] + Mmap v1.11.0
24+
[de0858da] + Printf v1.11.0
25+
[9a3f8284] + Random v1.11.0
26+
[ea8e919c] + SHA v0.7.0
27+
[fa267f1f] + TOML v1.0.3
28+
[cf7118a7] + UUIDs v1.11.0
29+
[4ec0a83e] + Unicode v1.11.0
2930
```
3031

3132
Here we added the package `JSON` to the current environment (which is the default `@v1.10` environment).
@@ -40,25 +41,31 @@ It is possible to add multiple packages in one command as `pkg> add A B C`.
4041
The status output contains the packages you have added yourself, in this case, `JSON`:
4142

4243
```julia-repl
43-
(@v1.10) pkg> st
44-
Status `~/.julia/environments/v1.10/Project.toml`
45-
[682c06a0] JSON v0.21.3
44+
(@v1.13) pkg> st
45+
Status `~/.julia/environments/v1.13/Project.toml`
46+
[682c06a0] JSON v0.21.4
4647
```
4748

4849
The manifest status shows all the packages in the environment, including recursive dependencies:
4950

5051
```julia-repl
51-
(@v1.10) pkg> st -m
52-
Status `~/.julia/environments/v1.10/Manifest.toml`
53-
[682c06a0] JSON v0.21.3
54-
[69de0a69] Parsers v2.4.0
55-
[ade2ca70] Dates
56-
[a63ad114] Mmap
57-
[de0858da] Printf
58-
[4ec0a83e] Unicode
59-
```
60-
61-
Since standard libraries (e.g. ` Dates`) are shipped with Julia, they do not have a version.
52+
(@v1.13) pkg> st -m
53+
Status `~/.julia/environments/v1.13/Manifest.toml`
54+
[682c06a0] JSON v0.21.4
55+
[69de0a69] Parsers v2.8.3
56+
[aea7be01] PrecompileTools v1.3.2
57+
[21216c6a] Preferences v1.5.0
58+
[ade2ca70] Dates v1.11.0
59+
[a63ad114] Mmap v1.11.0
60+
[de0858da] Printf v1.11.0
61+
[9a3f8284] Random v1.11.0
62+
[ea8e919c] SHA v0.7.0
63+
[fa267f1f] TOML v1.0.3
64+
[cf7118a7] UUIDs v1.11.0
65+
[4ec0a83e] Unicode v1.11.0
66+
```
67+
68+
Note that before 1.11 standard libraries (e.g. ` Dates`) did not have dedicated version numbers.
6269

6370
To specify that you want a particular version (or set of versions) of a package, use the `compat` command. For example,
6471
to require any patch release of the v0.21 series of JSON after v0.21.4, call `compat JSON 0.21.4`:

0 commit comments

Comments
 (0)