I’ve been maintaining the Terraform snap for the past few months, which was granted classic confinement in this post.
Terraform was recently forked by the OpenTF Foundation. I have now packaged OpenTF in a snap too.
At this point the codebases are very similar indeed, could I please get classic confinement granted for opentf too? The code is here: https://github.com/jnsgruk/opentf-snap.
The requirements for classic are understood and are in line with the original linked request still, so this request is also approved. Everything else is in order (publisher is vetted etc) so this is now live.
Hey, wondering if anyone can help me troubleshoot this as the alias doesn’t seem to be working by default.
Right now:
root@test:~# snap install opentofu --classic --edge
opentofu (edge) 1.6.0-alpha2 from Jon Seager (jnsgruk) installed
root@test:~# tofu
tofu: command not found
I can see the alias is defined in the meta.yaml:
root@test:/var/snap/opentofu/current# cat /snap/opentofu/current/meta/snap.yaml
name: opentofu
version: 1.6.0-alpha2
summary: OpenTofu lets you declaratively manage your cloud infrastructure.
description: |
OpenTofu is an OSS tool for building, changing, and versioning infrastructure
safely and efficiently. OpenTofu can manage existing and popular service
providers as well as custom in-house solutions.
base: core22
license: MPL-2.0
grade: stable
confinement: classic
architectures:
- amd64
apps:
tofu:
command: tofu
aliases:
- tofu
I thought the above request should mean that tofu works out of the box? Perhaps @Igor might have some experience here?