revert to go1.17 until xcgo is updated; disable snapcraft in goreleaser because it fails in xcgo (#105)

This commit is contained in:
Neil O'Toole 2022-08-10 14:14:19 -06:00 committed by GitHub
parent 23022f2b7f
commit 667aac6884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 65 deletions

View File

@ -153,67 +153,67 @@ nfpms:
- rpm
snapcrafts:
# For this to work, snapcraft needs to be installed.
# On macOS, "brew install snapcraft", then "snapcraft login".
-
# ID of the snapcraft config, must be unique.
# Defaults to "default".
id: neilotoole-sq
builds:
- build_linux
# The name of the snap should be "sq"; we need to register that.
name: neilotoole-sq
name_template: "neilotoole-sq-{{ .Os }}-{{ .Arch }}"
summary: "sq is a swiss army knife for data"
description: |
sq is a swiss army knife for data
grade: devel
confinement: devmode
# Whether to publish the snap to the snapcraft store.
# Remember you need to `snapcraft login` first.
# Defaults to false.
publish: true
license: MIT
# A snap of type base to be used as the execution environment for this snap.
# Valid values are:
# * bare - Empty base snap;
# * core - Ubuntu Core 16;
# * core18 - Ubuntu Core 18.
# Default is empty.
base: core18
# Each binary built by GoReleaser is an app inside the snap. In this section
# you can declare extra details for those binaries. It is optional.
apps:
# The name of the app must be the same name as the binary built or the snapcraft name.
sq:
# Declare "home" and "network" plugs to grant access to
# the user home dir, and the network
plugs: ["home", "network"]
# If your app requires extra permissions to work outside of its default
# confined space, declare them here.
# You can read the documentation about the available plugs and the
# things they allow:
# https://snapcraft.io/docs/reference/interfaces.
# plugs: ["home", "network", "personal-files"]
# If you want your app to be autostarted and to always run in the
# background, you can make it a simple daemon.
# daemon: simple
# If you any to pass args to your binary, you can add them with the
# args option.
# args: --foo
# Bash completion snippet. More information about completion here:
# https://docs.snapcraft.io/tab-completion-for-snaps.
# completer: drumroll-completion.bash
#snapcrafts:
## For this to work, snapcraft needs to be installed.
## On macOS, "brew install snapcraft", then "snapcraft login".
#
# -
# # ID of the snapcraft config, must be unique.
# # Defaults to "default".
# id: neilotoole-sq
#
# builds:
# - build_linux
# # The name of the snap should be "sq"; we need to register that.
# name: neilotoole-sq
#
# name_template: "neilotoole-sq-{{ .Os }}-{{ .Arch }}"
# summary: "sq is a swiss army knife for data"
# description: |
# sq is a swiss army knife for data
# grade: devel
# confinement: devmode
#
#
# # Whether to publish the snap to the snapcraft store.
# # Remember you need to `snapcraft login` first.
# # Defaults to false.
# publish: true
# license: MIT
#
# # A snap of type base to be used as the execution environment for this snap.
# # Valid values are:
# # * bare - Empty base snap;
# # * core - Ubuntu Core 16;
# # * core18 - Ubuntu Core 18.
# # Default is empty.
# base: core18
#
# # Each binary built by GoReleaser is an app inside the snap. In this section
# # you can declare extra details for those binaries. It is optional.
# apps:
#
# # The name of the app must be the same name as the binary built or the snapcraft name.
# sq:
# # Declare "home" and "network" plugs to grant access to
# # the user home dir, and the network
# plugs: ["home", "network"]
#
# # If your app requires extra permissions to work outside of its default
# # confined space, declare them here.
# # You can read the documentation about the available plugs and the
# # things they allow:
# # https://snapcraft.io/docs/reference/interfaces.
## plugs: ["home", "network", "personal-files"]
#
# # If you want your app to be autostarted and to always run in the
# # background, you can make it a simple daemon.
## daemon: simple
#
# # If you any to pass args to your binary, you can add them with the
# # args option.
## args: --foo
#
# # Bash completion snippet. More information about completion here:
# # https://docs.snapcraft.io/tab-completion-for-snaps.
## completer: drumroll-completion.bash

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/neilotoole/sq
go 1.19
go 1.17
// Using forked cobra for now because v1.1.3 does not pass Context
// to valid args completion funcs. There's an open PR for