generated from coulomb/repo-seed
fix(nix): fix GHC 9.10.3 interface-file crash and binary name
Generated.Types imports 119 modules, pushing the combined .hi read past a ~287 MB binary-deserialization limit in GHC 9.10.3. Fix by adding a nixpkgs overlay that patches the inter-hub-models derivation: replaces Generated/Types.hs with a thin TypesPart1/TypesPart2 re-export wrapper after build-generated-code runs, and adds the two split modules to the cabal exposed-modules list. Also fix the production binary name from /bin/App to /bin/RunProdServer in deployment.yaml and RUNBOOK.md (the IHP NixSupport build produces RunProdServer, not App). Switch packages.docker to IHP's built-in unoptimized-docker-image which already uses the correct binary path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ spec:
|
||||
{{- if .Values.runMigrations }}
|
||||
- name: migrate
|
||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||
command: ["/bin/App", "migrate"]
|
||||
command: ["/bin/RunProdServer", "migrate"]
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.envFrom.secretRef }}
|
||||
|
||||
@@ -49,7 +49,7 @@ IHP migrations run automatically on startup via the init container in the Deploy
|
||||
To run migrations manually:
|
||||
|
||||
```bash
|
||||
kubectl exec -n inter-hub deploy/inter-hub -- /bin/App migrate
|
||||
kubectl exec -n inter-hub deploy/inter-hub -- /bin/RunProdServer migrate
|
||||
```
|
||||
|
||||
To check migration status:
|
||||
|
||||
Reference in New Issue
Block a user