Skip to content

Commit

Permalink
update deps and goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
clipperhouse committed Jun 12, 2022
1 parent fbdd056 commit 672b2d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 110 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
*.ts
cpu.prof
mem.prof
cmd/jargon/dist/*
cmd/jargon/dist/*

dist/
.DS_Store
110 changes: 4 additions & 106 deletions cmd/jargon/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,21 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
# - go generate ./...
- go test ./...
builds:
-
# Custom environment variables to be set during the builds.
# Default is empty.
env:
- CGO_ENABLED=0

# GOOS list to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are darwin and linux.
goos:
- darwin
- windows
- linux

# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
archives:
- replacements:
darwin: Darwin
Expand All @@ -47,112 +38,19 @@ changelog:
brews:
-
# Name template of the recipe
# Default to project name
# name: myproject

# IDs of the archives to use.
# Defaults to all.
# ids:
# - foo
# - bar

# GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Brew formulas support atm only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
# goarm: 6


# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
# same kind. We will probably unify this in the next major version like it is done with scoop.
name: jargon

# Github repository to push the tap to.
github:
tap:
owner: clipperhouse
name: homebrew-tap

# OR Gitlab
# gitlab:
# owner: gitlab-user
# name: homebrew-tap

# Gitea is not supported yet, but the support coming

# Template for the url which is determined by the given Token (github or gitlab)
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}"
# url_template: "http://github.mycompany.com/foo/bar/releases/{{ .Tag }}/{{ .ArtifactName }}"

# Allows you to set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
# Default is empty.
# download_strategy: CurlDownloadStrategy.

# Allows you to add a custom require_relative at the top of the formula template
# Default is empty
# custom_require: custom_download_strategy

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: clipperhouse
email: mwsherman@gmail.com

# Folder inside the repository to put the formula.
# Default is the root folder.
# folder: Formula

# Caveats for the user of your binary.
# Default is empty.
# caveats: "How to use this binary"

# Your app's homepage.
# Default is empty.
homepage: "https://github.com/clipperhouse/jargon"

# Your app's description.
# Default is empty.
description: "Text pipelines for CLI and Go."

# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
# skip_upload: true

# Custom block for brew.
# Can be used to specify alternate downloads for devel or head releases.
# Default is empty.
# custom_block: |
# head "https://github.com/some/package.git"
# ...

# Packages your package depends on.
# dependencies:
# - git
# - zsh

# Packages that conflict with your package.
# conflicts:
# - svn
# - bash

# Specify for packages that run as a service.
# Default is empty.
# plist: |
# <?xml version="1.0" encoding="UTF-8"?>
# ...

# So you can `brew test` your formula.
# Default is empty.
# test: |
# system "#{bin}/program --version"
# ...

# Custom install script for brew.
# Default is 'bin.install "program"'.
# install: |
# bin.install "program"
# ...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/clipperhouse/jargon
require (
github.com/PuerkitoBio/goquery v1.5.1
github.com/clipperhouse/flag v0.0.1
github.com/clipperhouse/uax29 v1.9.1
github.com/clipperhouse/uax29 v1.11.0
github.com/kljensen/snowball v0.6.0
github.com/spf13/afero v1.2.2
golang.org/x/net v0.0.0-20220607020251-c690dde0001d
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5z
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/clipperhouse/flag v0.0.1 h1:EUgginbk0r3635gKAtpvtkUkrVEVDTjF8Dq0ddzsiYc=
github.com/clipperhouse/flag v0.0.1/go.mod h1:R2oWQkmwllOvef0btjd2tJDA/fLJw5/bO5poK6cTsC8=
github.com/clipperhouse/uax29 v1.9.1 h1:fDwxavqwGNQPpyEvlwk515NnwcqD02IsTRTnw0M/MqE=
github.com/clipperhouse/uax29 v1.9.1/go.mod h1:FAo2cvpr40r4bLhfxYnbbOM9JgZAcIv6uXPtZKvBmv4=
github.com/clipperhouse/uax29 v1.11.0 h1:iZAPSUGrDY58/9HssqAXcvgyQxVr93fhIRBJbNDCU8Y=
github.com/clipperhouse/uax29 v1.11.0/go.mod h1:FAo2cvpr40r4bLhfxYnbbOM9JgZAcIv6uXPtZKvBmv4=
github.com/kljensen/snowball v0.6.0 h1:6DZLCcZeL0cLfodx+Md4/OLC6b/bfurWUOUGs1ydfOU=
github.com/kljensen/snowball v0.6.0/go.mod h1:27N7E8fVU5H68RlUmnWwZCfxgt4POBJfENGMvNRhldw=
github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc=
Expand Down

0 comments on commit 672b2d1

Please sign in to comment.