unison/unison-src/transcripts/upgrade-sad-path.md

32 lines
424 B
Markdown
Raw Permalink Normal View History

```ucm:hide
proj/main> builtins.merge lib.builtin
```
```unison
lib.old.foo = 17
lib.new.foo = +18
thingy = lib.old.foo + 10
```
```ucm
proj/main> add
```
```ucm:error
proj/main> upgrade old new
```
2024-05-20 19:09:00 +03:00
Resolve the error and commit the upgrade.
```unison
thingy = foo + +10
```
```ucm
2024-05-23 15:26:52 +03:00
proj/upgrade-old-to-new> update
2024-05-20 19:09:00 +03:00
proj/upgrade-old-to-new> upgrade.commit
proj/main> view thingy
proj/main> ls lib
proj/main> branches
2024-05-20 19:09:00 +03:00
```