2022-11-06 08:36:35 +03:00
|
|
|
`update` / `patch` (anything that a patch) ignores the namespace named "lib" at the location it's applied. This follows
|
|
|
|
the project organization convention that dependencies are put in "lib"; it's much easier to apply a patch to all of
|
|
|
|
one's own code if the "lib" namespace is simply ignored.
|
|
|
|
|
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> builtins.merge
|
2022-11-06 08:36:35 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```unison
|
|
|
|
foo = 100
|
|
|
|
lib.foo = 100
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2022-11-06 08:36:35 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```unison
|
|
|
|
foo = 200
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> update
|
|
|
|
scratch/main> names foo
|
2022-11-06 08:36:35 +03:00
|
|
|
```
|