Skip to content

Goosebit 0.2.10 installs incompatible Aerich version (migration failure) #393

@mruettgers

Description

@mruettgers

Summary

When building a custom Docker image for goosebit[postgresql]==0.2.10, pip installs Aerich 0.9.2.
However, the official Goosebit Docker image for the same version uses Aerich 0.9.1.

The newer Aerich (0.9.2) treats Goosebit’s bundled migration files as "old format" and causes:

RuntimeError: Old format of migration file detected, run `aerich fix-migrations` to upgrade format

Running aerich fix-migrations is impossible because the database has no Aerich table yet.

Expected

Installing Goosebit 0.2.10 via pip should pull a compatible Aerich version (0.9.1), matching the official image.

Actual

pip install goosebit[postgresql]==0.2.10 installs Aerich 0.9.2 → migrations fail on a fresh DB.

Suggested Fix

Pin Aerich to 0.9.1 in Goosebit’s dependencies or adjust the bundled migrations for 0.9.2.

Workaround

Install Goosebit with an explicit Aerich pin in Dockerfile:

pip install --no-cache-dir \
        gunicorn \
        aerich==0.9.1 \
        goosebit[postgresql]==0.2.10

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions