diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 00000000..4e9bc78f --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,36 @@ +name: tfswitch +version: git +summary: A command line tool to switch between different versions of terraform +description: | + The `tfswitch` command line tool lets you switch between different versions of terraform(https://www.terraform.io/). + If you do not have a particular version of terraform installed, `tfswitch` will download the version you desire. + The installation is minimal and easy. + Once installed, simply select the version you require from the dropdown and start using terraform. +architectures: + - build-on: arm64 + - build-on: amd64 +assumes: [snapd2.45] +base: core18 + +grade: stable +confinement: strict + +apps: + tfswitch: + command: bin/tfswitch + plugs: + - home + - network + - network-bind + +parts: + tfswitch: + source: . + plugin: go + go-importpath: github.com/warrensbox/terraform-switcher + build-packages: + - gcc-multilib + go-buildtags: + - tfswitch + override-build: + go build -o ../install/bin/tfswitch \ No newline at end of file