Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holochain 0.4 upgrade guide #499

Merged
merged 45 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c977651
better headers in advanced setup guide
pdaoust Nov 19, 2024
b230aac
customised HC binary
pdaoust Nov 19, 2024
a026a08
add auto-generated TOC into 0.3 upgrade guide
pdaoust Nov 22, 2024
3d82465
0.4 upgrade guide
pdaoust Nov 22, 2024
ab70212
add 0.4 upgrade guide to TOC; rearrange
pdaoust Nov 22, 2024
8c71c43
update redirects for upgrade guide
pdaoust Nov 22, 2024
f4f61a1
add mention of new Holonix to 0.4 migration guide
pdaoust Nov 22, 2024
b3521b7
language shaping
pdaoust Nov 28, 2024
1ffdc7f
small typos
pdaoust Dec 6, 2024
4f3cb3a
add links, get 0.4 upgrade guide ready
pdaoust Dec 9, 2024
466caff
remove holo_hash change from 0.4 upgrade guide
pdaoust Dec 9, 2024
2e1df56
fix broken link
pdaoust Dec 10, 2024
12ab014
rewrite 0.4 upgrade guide to focus on howto
pdaoust Dec 12, 2024
b4abd04
fix broken fragment identifier
pdaoust Dec 12, 2024
771ea2c
change Holonix upgrade recommendation to insistence
pdaoust Dec 12, 2024
c698552
clean up stuff that shouldn't have been there
pdaoust Dec 12, 2024
f89af9d
move things around
pdaoust Dec 12, 2024
e86b98f
remove thing about updating UI and test folder packages
pdaoust Dec 12, 2024
2fc9133
Add Jost's suggestions
pdaoust Dec 12, 2024
f0b96d4
simplify language per Jost's suggestion
pdaoust Dec 12, 2024
935d009
clarify language about unstable functions
pdaoust Dec 12, 2024
756dbe1
tiny language clarification
pdaoust Dec 12, 2024
360f69e
apply ThetaSinner's suggestions
pdaoust Dec 13, 2024
0b25327
address breaking change in JS client 0.18
pdaoust Dec 13, 2024
dcd577a
fix broken fragment id
pdaoust Dec 13, 2024
ec5de94
add import, fix bug
pdaoust Dec 13, 2024
f106698
improve wording re: long CI build times
pdaoust Dec 13, 2024
e8c689f
fix basic migration steps
pdaoust Dec 13, 2024
e54d4eb
move less important migration steps down
pdaoust Dec 13, 2024
c2822d6
better version-specific ad-hoc shell
pdaoust Dec 13, 2024
40987e4
Merge remote-tracking branch 'origin/main' into 2024-11-19-holochain-…
pdaoust Dec 13, 2024
b9aadab
bump recommended release info in advanced install
pdaoust Dec 13, 2024
93bc576
fix signal refactoring so it compiles
pdaoust Dec 16, 2024
b14c432
fix bug in sample JS code
pdaoust Dec 16, 2024
ab4ee94
simplify/fix sample JS
pdaoust Dec 16, 2024
cfa2940
fix bug in js
pdaoust Dec 16, 2024
236d706
better copyability for command
pdaoust Dec 16, 2024
0d1628b
note about optionally using latest versions of hdi/k
pdaoust Dec 16, 2024
9d08edd
fix sample code
pdaoust Dec 16, 2024
f93bfdf
remove rust client example from clone cell diffs
pdaoust Dec 16, 2024
f7d868b
fix yet another clearly wrong bit of code
pdaoust Dec 18, 2024
4458a61
improve language / fix more bugs
pdaoust Dec 19, 2024
99a00ac
update clone cell sample code to reflect the fact that clones are ena…
pdaoust Dec 19, 2024
59add02
feedback from ThetaSinner
pdaoust Dec 20, 2024
0628d0b
remove rc from version numbers
pdaoust Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cspell/custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ rustflags
rustup
setgid
setuid
struct
structs
subl
Tauri
Ulhaq
Expand Down
3 changes: 3 additions & 0 deletions .cspell/holochain-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ Holochain
Holochain's
Holonix
Lightningrod
memproof
memproofs
Mythosthesia
sharded
Snapmail
Tryorama
unsharded
webhapp
zome
zome's
Expand Down
1 change: 1 addition & 0 deletions .cspell/words-that-should-exist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interoperating
permissioned
permissivity
redistributable
reserialize
runtimes
sandboxed
sandboxing
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@
# The first upgrade guide lived under getting started. It has been moved to its own area.
[[redirects]]
from = "/get-started/upgrade-holochain/"
to = "/resources/upgrade/upgrade-holochain-0.2/"
to = "/resources/upgrade/"
status = 301

# Every time there's a new breaking release that achieves 'recommended' status,
# update this temporary redirect. /resources/upgrade/latest/ isn't in the site nav,
# but it is a handy URL we can hand out without needing to look up what the proper URL is.
[[redirects]]
from = "/resources/upgrade/latest/"
to = "resources/upgrade/upgrade-holochain-0.2/"
to = "/resources/upgrade/upgrade-holochain-0.4/"
status = 302
20 changes: 14 additions & 6 deletions src/pages/get-started/install-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,31 @@ If you want to learn more about how this setup works and how to create it manual

[Flakes](https://wiki.nixos.org/wiki/Flakes) is an experimental but well-supported feature of the Nix package manager that makes it easier to manage dependencies consistently. [Enable flakes on your system.](https://wiki.nixos.org/wiki/Flakes#Enable_flakes_temporarily)

The flake-based one-liner to get you an ad-hoc Holonix shell looks like this:
### Entering an ad-hoc shell

The flake-based one-liner to get you an ad-hoc Holonix shell (that is, not using a local flake file) looks like this:

```shell
nix develop github:holochain/holonix?ref=main-0.3
nix develop github:holochain/holonix?ref=main-0.4
```

The above one-liner will give you the latest **recommended** version of Holochain from the 0.3 release branch. To get an ad-hoc shell with a specific version of Holochain, change the `ref` parameter, for example:
#### Specifying a certain release

The above one-liner will give you the latest **recommended** version of Holochain from the 0.4 release branch. To get an ad-hoc shell with a different version of Holochain, change the `ref` parameter. For example, if you want to enter a Holochain 0.3 development shell, run:

```shell
nix develop github:holochain/holonix?ref=main-0.4
nix develop github:holochain/holonix?ref=main-0.3
```

The options you should know about are:

* `main` or no `ref` parameter: The development version of Holochain, released weekly with no guarantee of stability (currently 0.5)
* `main-0.4`: RC of Holochain 0.4 (be aware that many breaking changes are coming in the next RC)
* `main-0.3`: The current recommended version of Holochain for everyday development
* `main-0.4`: The current recommended version of Holochain for everyday development
* `main-0.3`: The previous version of Holochain, which still receives maintenance releases

### Customizing the Holochain binary

If you want to enable or disable certain Holochain features, such as unstable features, it's best to do this in a local flake file. [Read the 'Customized Holochain build'](https://github.com/holochain/holonix?tab=readme-ov-file#customized-holochain-build) on the Holonix readme to find out how. Keep in mind that, because you'll be creating a custom Holochain binary, you won't be able to take advantage of the package cache, so it'll take a while to compile Holochain on your machine. The same will be true on CI, where you should consider setting up your own caching.

### A gotcha with Flakes and Git

Expand Down
5 changes: 3 additions & 2 deletions src/pages/resources/upgrade/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ hide:

Upgrading between versions of Holochain can be a bit tricky! While Holochain is in beta, you can expect breaking changes between minor versions. To make upgrading your hApp easier, we create guides to help you move from one Holochain version to the next.

* [Holochain Upgrade 0.1 → 0.2](/resources/upgrade/upgrade-holochain-0.2/)
* [Holochain Upgrade 0.2 → 0.3](/resources/upgrade/upgrade-holochain-0.3/)
* [Upgrading to the new Holonix](/resources/upgrade/upgrade-new-holonix/) (all Holochain versions)
* [Holochain Upgrade 0.3 → 0.4](/resources/upgrade/upgrade-holochain-0.4/)
* [Holochain Upgrade 0.2 → 0.3](/resources/upgrade/upgrade-holochain-0.3/)
* [Holochain Upgrade 0.1 → 0.2](/resources/upgrade/upgrade-holochain-0.2/)
2 changes: 0 additions & 2 deletions src/pages/resources/upgrade/upgrade-holochain-0.3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
title: Holochain Upgrade 0.2 → 0.3
hide:
- toc
---

::: intro
Expand Down
Loading
Loading