Entering the provider uses the hostname of the snapshot
Metadata
Current evaluation
Fixed by merged PR #4244 (commit 4a7127fdd), which updated craft-providers to 1.10.1 so provider shells use the current snap's hostname.
Resolution: closed resolved
Reason: PR #4244 updated craft-providers to 1.10.1 in commit 4a7127fdd, resolving the inherited base-snapshot hostname.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
The base snapshot is keeping the hostname (snapcraft-<snap-name>) of the first project that is used to create that base.
### To Reproduce
- Use a clean environment (no existing LXD project)
- Use latest snapcraft
- create a new snap project (my-snap)
- create the snap
- create another snap project (my-other-snap)
- run `snapcraft pull --shell`
- notice the hostname of this environment is set to `snapcraft-my-snap` and not `snapcraft-my-other-snap`
### Environment
Ubuntu 22.04, snapcraft with LXD
### snapcraft.yaml
```shell
snapcraft init
```
### Relevant log output
```shell
sergiusens@imladris:~/repo/snaps/ansel$ snapcraft pull --shell
Launching instance...
Launching shell on build environment...
snapcraft-pypi-server-charm-obs-on-amd64-for-amd64-2098342 ../project#
```
### Additional context
_No response_
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #4244 (commit 4a7127fdd), which updated craft-providers to 1.10.1 so provider shells use the current snap's hostname. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by updating craft-providers to 1.10.1 in merged PR #4244 (commit 4a7127fdd), preventing provider shells from reusing the base snapshot's hostname. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft updated craft-providers to 1.10.1 in merged PR #4244, fixing provider shells that reused the base snapshot's hostname instead of the current snap's hostname. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by updating craft-providers to 1.10.1 in Snapcraft PR #4244, ensuring provider shells use the current snap project's hostname rather than reusing the base snapshot's. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed a bug where base snapshots retained the first project's hostname. Resolved in craft-providers 1.10.1 and integrated via PR #4244. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved in craft-providers 1.10.1 and merged via PR #4244. The base snapshot now correctly applies the current project's hostname instead of retaining the hostname from the initial project that created it. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in craft-providers 1.10.1 and updated via PR #4244. The base snapshot now correctly updates the hostname per project instead of retaining the initial project's hostname. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed in craft-providers 1.10.1 and merged via PR #4244. The base snapshot now correctly applies the hostname of the active project instead of persisting the hostname from the initial project that created it. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#4244
(confidence 100%)
Merged dependency update to craft-providers 1.10.1.
Related issues
No related issues found above the similarity threshold.