Skip to content

Commit

Permalink
Switch dqlite to 1.16.5 and go-dqlite to 1.21.0 (5.0-candidate) (#627)
Browse files Browse the repository at this point in the history
And revert commit that switches LXD to go-dqlite v2.

This is related to a suspected crash caused by dqlite v1.17.1 or
go-dqlite v2.0.0 and beyond.

Whilst its being investigated we will stick with the previously known
good combination from LXD v5.21.2.
  • Loading branch information
tomponline authored Nov 20, 2024
2 parents fe67884 + 8c71034 commit 497fe1e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ parts:
after:
- sqlite
source: https://github.com/canonical/dqlite
source-commit: ee1766cba1b52317ba216c0fbddd8457a0241df6 # v1.17.1 LTS
source-commit: 769a5ae21156ea7b1f01a937f80a3da60eb6a1bb # v1.16.5
source-type: git
source-depth: 1
plugin: autotools
Expand Down Expand Up @@ -1408,8 +1408,16 @@ parts:
mkdir -p "${GOPATH}/src/github.com/canonical"
ln -s "$(pwd)" "${GOPATH}/src/github.com/canonical/lxd"
# Switch dqlite to 1.16.5 and go-dqlite to 1.21.0 (known good from LXD v5.21.2)
# whilst crashes with go-dqlite v2 or dqlite 1.17 LTS are resolved.
git config user.email "[email protected]"
git config user.name "LXD snap builder"
git revert e8a5357c63fb51b814e5d262479cc928fcba710d # Revert switch to go-dqlite v2
go get github.com/canonical/[email protected] # Switch back to go-dqlite v1
go mod tidy
# Download the dependencies
go get -d -v ./...
go get -v ./...
override-build: |
set -ex
Expand Down

0 comments on commit 497fe1e

Please sign in to comment.