You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/creating-packages.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,20 +297,28 @@ projects = ["test"]
297
297
(HelloWorld) pkg> activate ./test
298
298
[ Info: activating environment at `~/HelloWorld/test/Project.toml`.
299
299
300
-
(HelloWorld/test) pkg> add Test
300
+
(HelloWorld/test) pkg> dev . # add current package to test dependencies using its path
301
+
Resolving package versions...
302
+
Updating `~/HelloWorld/test/Project.toml`
303
+
[8dfed614] + HelloWorld v0.1.0 `..`
304
+
305
+
(HelloWorld/test) pkg> add Test # add other test dependencies
301
306
Resolving package versions...
302
307
Updating `~/HelloWorld/test/Project.toml`
303
308
[8dfed614] + Test
304
309
```
305
310
306
311
When using workspaces, the package manager resolves dependencies for all projects in the workspace together, and creates a single `Manifest.toml` next to the base `Project.toml`. This provides better dependency resolution and makes it easier to manage test-specific dependencies.
307
312
313
+
!!! warning
314
+
Unlike some earlier test dependency workflows, this one explicitly requires adding `HelloWorld` (the parent package) to your `test/Project.toml`.
0 commit comments