Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added snapscraft file #104

Merged
merged 1 commit into from
Sep 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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