updating github.com/client9/misspell to v0.3.4

This commit is contained in:
Davanum Srinivas
2019-06-14 10:41:46 -04:00
parent 011911022d
commit 101fd2125c
11 changed files with 95 additions and 57 deletions

View File

@@ -1,5 +1,6 @@
dist/
bin/
vendor/
# editor turds
*~

View File

@@ -3,10 +3,18 @@ dist: trusty
group: edge
language: go
go:
- 1.8.3
- "1.10"
git:
depth: 1
script:
- make -e ci
after_success:
- test -n "$TRAVIS_TAG" && ./scripts/goreleaser.sh
- ./scripts/travis.sh
# calls goreleaser when a new tag is pushed
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

View File

@@ -1,4 +1,4 @@
FROM golang:1.8.3-alpine
FROM golang:1.10.0-alpine
# cache buster
RUN echo 4

View File

@@ -3,13 +3,22 @@
[[projects]]
name = "github.com/gobwas/glob"
packages = [".","compiler","match","syntax","syntax/ast","syntax/lexer","util/runes","util/strings"]
revision = "bea32b9cd2d6f55753d94a28e959b13f0244797a"
version = "v0.2.2"
packages = [
".",
"compiler",
"match",
"syntax",
"syntax/ast",
"syntax/lexer",
"util/runes",
"util/strings"
]
revision = "5ccd90ef52e1e632236f7326478d4faa74f99438"
version = "v0.2.3"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "e481c81c87260652d25840e1d95d6e530331c095d64d84422a166f37ae0a77d3"
inputs-digest = "087ea4c49358ea8258ad9edfe514cd5ce9975c889c258e5ec7b5d2b720aae113"
solver-name = "gps-cdcl"
solver-version = 1

View File

@@ -1,7 +1,6 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
@@ -17,10 +16,19 @@
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[[constraint]]
name = "github.com/gobwas/glob"
version = "0.2.2"
version = "0.2.3"
[prune]
go-tests = true
unused-packages = true

View File

@@ -4,25 +4,15 @@ install: ## install misspell into GOPATH/bin
go install ./cmd/misspell
build: hooks ## build and lint misspell
go install ./cmd/misspell
gometalinter \
--vendor \
--deadline=60s \
--disable-all \
--enable=vet \
--enable=golint \
--enable=gofmt \
--enable=goimports \
--enable=gosimple \
--enable=staticcheck \
--enable=ineffassign \
--exclude=/usr/local/go/src/net/lookup_unix.go \
./...
go test .
./scripts/build.sh
test: ## run all tests
go test .
# real publishing is done only by travis
publish: ## test goreleaser
./scripts/goreleaser-dryrun.sh
# the grep in line 2 is to remove misspellings in the spelling dictionary
# that trigger false positives!!
falsepositives: /scowl-wl

View File

@@ -5,21 +5,34 @@ since I forget.
1. Review existing tags and pick new release number
```bash
```sh
git tag
```
2. Tag locally
```bash
```sh
git tag -a v0.1.0 -m "First release"
```
3. Push
If things get screwed up, delete the tag with
```sh
git tag -d v0.1.0
```
3. Test goreleaser
TODO: how to install goreleaser
```sh
./scripts/goreleaser-dryrun.sh
```
4. Push
```bash
git push origin v0.1.0
```
4. Verify release and edit notes. See https://github.com/client9/misspell/releases
5. Verify release and edit notes. See https://github.com/client9/misspell/releases

View File

@@ -1,22 +1,26 @@
# goreleaser.yml
# https://github.com/goreleaser/goreleaser
build:
main: cmd/misspell/main.go
binary: misspell
ldflags: -s -w -X main.version={{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
project_name: misspell
builds:
-
main: cmd/misspell/main.go
binary: misspell
ldflags: -s -w -X main.version={{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
archive:
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
@@ -24,6 +28,11 @@ archive:
amd64: 64bit
386: 32bit
darwin: mac
files:
- none*
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
snapshot:
name_template: SNAPSHOT-{{.Commit}}
name_template: "SNAPSHOT-{{.Commit}}"