Skip to content

Conversation

@kalbasit
Copy link
Contributor

In 7349386, mkApplication was created to consolidate the creation of an application but it has changed the behavior of the bootstrap application name as it started honoring config.nixidy.appendNameWithEnv and that broke the behavior of config.nixidy.bootstrapManifest.enable:

❯ nixidy switch .#prod
switching manifests
symlink has no referent: "/nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml"
❯ ls -la /nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml
lrwxr-xr-x - root 31 Dec  1969 /nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml -> /nix/store/6z6d77r4gw2dd68xn1ylrk5y9gakd9zv-nixidy-app-__bootstrap/Application-cluster-prod.yaml
❯ ls -la /nix/store/6z6d77r4gw2dd68xn1ylrk5y9gakd9zv-nixidy-app-*
.r--r--r-- 540 root 31 Dec  1969 Application-cluster-prod-prod.yaml

As demonstrated above, the app of apps became known on disk as Application-cluster-prod-prod.yaml instead of its original/expected name Application-cluster-prod.yaml which caused the symlink to break and hence nixidy switch no longer worked when both appendNameWithEnv and bootstrapManifest.enable are set to true.

In 7349386, mkApplication was created
to consolidate the creation of an application but it has changed the
behavior of the bootstrap application name as it started honoring
config.nixidy.appendNameWithEnv and that broke the behavior of
config.nixidy.bootstrapManifest.enable:

```
❯ nixidy switch .#prod
switching manifests
symlink has no referent: "/nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml"
❯ ls -la /nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml
lrwxr-xr-x - root 31 Dec  1969 /nix/store/is7lk9ng28mywwr2ba405x8fcak50bxs-nixidy-environment-prod/bootstrap.yaml -> /nix/store/6z6d77r4gw2dd68xn1ylrk5y9gakd9zv-nixidy-app-__bootstrap/Application-cluster-prod.yaml
❯ ls -la /nix/store/6z6d77r4gw2dd68xn1ylrk5y9gakd9zv-nixidy-app-*
.r--r--r-- 540 root 31 Dec  1969 Application-cluster-prod-prod.yaml
```

As demonstrated above, the app of apps became known on disk as
Application-cluster-prod-prod.yaml instead of its original/expected name
Application-cluster-prod.yaml which caused the symlink to break and
hence nixidy switch no longer worked when both appendNameWithEnv and
bootstrapManifest.enable are set to true.
@arnarg arnarg merged commit 2ed7d35 into arnarg:main Dec 22, 2025
3 checks passed
@arnarg
Copy link
Owner

arnarg commented Dec 22, 2025

Thanks for the fix!

@kalbasit kalbasit deleted the fix-mkapplication branch December 22, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants