Skip to content

Commit

Permalink
!refactor: v1 release due to removal of stale packages (#37)
Browse files Browse the repository at this point in the history
Breaking changes included.
Read the impact before upgrading, in case you are actually using one of these minimally imported packages.

If you are upgrading, this should be a very minor change in your magefiles set-up.

The removal of some packages to `.examples` has been made.
Some extra packages like `gittools` are better served by installing with a tool like [aqua-proj](https://aquaproj.github.io/), [asdf-vm](https://asdf-vm.com), or other.
This should cut down setup times by grabbing binaries and not installing from source each time.

If you want to keep things exactly as they are:

- grab the mage directory that was removed (see `.examples/` directory) and drop it into your `magefiles` directory.
- Update your import in your main `magefile.go` from `github.com/sheldonhull/magefile` to `yourrepo/magefile/{package}` and then `mage -f` to force a rebuild and confirm it was found.
- Run `go mod tidy` to cleanup and you should be good.

This project has saved me a lot of effort across many repos, so I'm doing some due diligece in cleaning up little-used and difficult to test code.

### Docs

- Removed reference to starter templates, and instead pointed to [GitHub - sheldonhull/scripts-to-rule-them-all-go](https://github.com/sheldonhull/scripts-to-rule-them-all-go)

### Removed

- BREAKING CHANGE: Removed `docker` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `licensing` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `retool` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `secrets` package, and placed in `.examples`.
  This is better served by [Trunk.io](trunk.io) or pre-commit tooling, than using with mage.
- BREAKING CHANGE: Removed `gittools` package and placed in `.examples`.
  This would be better served by using [aqua-project](https://aquaproj.github.io/).
  • Loading branch information
sheldonhull authored Oct 18, 2022
1 parent 5ec4adf commit 045d3a2
Show file tree
Hide file tree
Showing 207 changed files with 167 additions and 23,478 deletions.
32 changes: 32 additions & 0 deletions .changes/v1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## v1.0.0 - 2022-10-18

Breaking changes included.
Read the impact before upgrading, in case you are actually using one of these minimally imported packages.

If you are upgrading, this should be a very minor change in your magefiles set-up.

The removal of some packages to `.examples` has been made.
Some extra packages like `gittools` are better served by installing with a tool like [aqua-proj](https://aquaproj.github.io/), [asdf-vm](https://asdf-vm.com), or other.
This should cut down setup times by grabbing binaries and not installing from source each time.

If you want to keep things exactly as they are:

- grab the mage directory that was removed (see `.examples/` directory) and drop it into your `magefiles` directory.
- Update your import in your main `magefile.go` from `github.com/sheldonhull/magefile` to `yourrepo/magefile/{package}` and then `mage -f` to force a rebuild and confirm it was found.
- Run `go mod tidy` to cleanup and you should be good.

This project has saved me a lot of effort across many repos, so I'm doing some due diligece in cleaning up little-used and difficult to test code.

### Docs

- Removed reference to starter templates, and instead pointed to [GitHub - sheldonhull/scripts-to-rule-them-all-go](https://github.com/sheldonhull/scripts-to-rule-them-all-go)

### Removed

- BREAKING CHANGE: Removed `docker` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `licensing` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `retool` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `secrets` package, and placed in `.examples`.
This is better served by [Trunk.io](trunk.io) or pre-commit tooling, than using with mage.
- BREAKING CHANGE: Removed `gittools` package and placed in `.examples`.
This would be better served by using [aqua-project](https://aquaproj.github.io/).
1 change: 1 addition & 0 deletions docker/Dockerfile → .examples/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# trunk-ignore(hadolint/DL3007)
FROM ubuntu:latest
RUN echo "success"
2 changes: 2 additions & 0 deletions docker/docker.go → .examples/docker/docker.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

// Docker package provides common docker commands.
//
// Deprecated: Devcontainer commands will move to their own package eventually.
Expand Down
2 changes: 2 additions & 0 deletions docker/docker_test.go → .examples/docker/docker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

package docker_test

import (
Expand Down
2 changes: 2 additions & 0 deletions gittools/gittools.go → .examples/gittools/gittools.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

// Package gittools provides automatic setup of some useful git tooling like Bit and Git Town
//
// Deprecated: This should be done via aqua, brew, or another tooling solution, as magetools isn't the best fit for this.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

package gittools_test

import (
Expand Down
2 changes: 2 additions & 0 deletions licensing/licensing.go → .examples/licensing/licensing.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

// Licensing package wraps up go-license to run checks against licenses and validate forbidden license types aren't detected.
//
// Deprecated: This is likely to be removed in an upcoming release as not used and problematic to check output.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

package licensing_test

import (
Expand Down
2 changes: 2 additions & 0 deletions retool/retool.go → .examples/retool/retool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

// retool tooling helps bootstrap a project with locally vendored executables and tools.
// This runs tooling from local `_tools` directory, rather than installing globally.
package retool
Expand Down
2 changes: 2 additions & 0 deletions retool/retool_test.go → .examples/retool/retool_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

package retool_test

import (
Expand Down
2 changes: 2 additions & 0 deletions secrets/secrets.go → .examples/secrets/secrets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

// Secrets package runs gitleaks
//
// Deprecated: Removing this as trunk and pre-commit resolve running this in a more consistent way.
Expand Down
2 changes: 2 additions & 0 deletions secrets/secrets_test.go → .examples/secrets/secrets_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build examples

package secrets_test

import (
Expand Down
3 changes: 3 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ lint:
- linters: [yamllint]
paths:
- .changes/unreleased/*.yaml
- linters: [golangci-lint]
paths:
- .examples/*

cli:
version: 0.18.1-beta
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## v1.0.0 - 2022-10-18

Breaking changes included.
Read the impact before upgrading, in case you are actually using one of these minimally imported packages.

If you are upgrading, this should be a very minor change in your magefiles set-up.

The removal of some packages to `.examples` has been made.
Some extra packages like `gittools` are better served by installing with a tool like [aqua-proj](https://aquaproj.github.io/), [asdf-vm](https://asdf-vm.com), or other.
This should cut down setup times by grabbing binaries and not installing from source each time.

If you want to keep things exactly as they are:

- grab the mage directory that was removed (see `.examples/` directory) and drop it into your `magefiles` directory.
- Update your import in your main `magefile.go` from `github.com/sheldonhull/magefile` to `yourrepo/magefile/{package}` and then `mage -f` to force a rebuild and confirm it was found.
- Run `go mod tidy` to cleanup and you should be good.

This project has saved me a lot of effort across many repos, so I'm doing some due diligece in cleaning up little-used and difficult to test code.

### Docs

- Removed reference to starter templates, and instead pointed to [GitHub - sheldonhull/scripts-to-rule-them-all-go](https://github.com/sheldonhull/scripts-to-rule-them-all-go)

### Removed

- BREAKING CHANGE: Removed `docker` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `licensing` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `retool` package, and placed in `.examples`.
- BREAKING CHANGE: Removed `secrets` package, and placed in `.examples`.
This is better served by [Trunk.io](trunk.io) or pre-commit tooling, than using with mage.
- BREAKING CHANGE: Removed `gittools` package and placed in `.examples`.
This would be better served by using [aqua-project](https://aquaproj.github.io/).

## v0.0.14 - 2022-10-17

### Changed
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

[![codecov](https://codecov.io/gh/sheldonhull/magetools/branch/main/graph/badge.svg?token=FPHYYO5ZF2)](https://codecov.io/gh/sheldonhull/magetools)

General tooling helpers for simplifying cross repository automation using Mage.
General tooling helpers for simplifying cross-repository automation using Mage.

The test coverage shown is informal, as these aren't setup always with full standard tests.
Primarily the tests just import and run to confirm no errors.
When possible, I do test the functionality.

Mage is a good case of a little magic making things faster and easier to adopt, while making it a bit trickier to test functions IMO.

## Getting Bootstrapped On A New Repo

Jump start a new repo with the [GitHub - sheldonhull/scripts-to-rule-them-all-go](https://github.com/sheldonhull/scripts-to-rule-them-all-go)

## Other Go Focused Tools for Task Automation

Worth an honorable mention is [Goyek](https://github.com/goyek/goyek) which has a similar goal to Mage, but approaches with less magic and a similar design to writing tests.
Expand Down Expand Up @@ -58,7 +62,7 @@ I prefer to the dot prefix and underscore isn't very common from what I've obser

## Tip

Include `mage_output_file.go` in your gitignore file to avoid it causing consternation in your git diff monitoring tooling.
Include `mage_output_file.go` in your `gitignore` file to avoid it causing consternation in your git diff monitoring tooling.

## Examples

Expand Down Expand Up @@ -94,12 +98,7 @@ $ENV:GOPRIVATE='github.com/sheldonhull/*'

## Allow Zero Install Run

From the [Mage Docs], see [mage.go](starter/root-imports-with-tasks-in-subdirectory/mage.go).

From the [Mage Docs].
Run this using: `go run main.go` and it should work just like using `mage` directly.

[mage docs]: https://magefile.org/zeroinstall

## Future

Possibly best to setup with a dedicated templating tool in the future (something like Cookiecutter) but for now this is just an easy copy and paste in VSCode.
3 changes: 2 additions & 1 deletion aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# require_checksum: true
registries:
- type: standard
ref: v3.74.0 # renovate: depName=aquaproj/aqua-registry
ref: v3.76.2 # renovate: depName=aquaproj/aqua-registry
packages:
- name: miniscruff/changie@v1.9.1
- name: goreleaser/goreleaser@v1.11.5
Expand All @@ -16,3 +16,4 @@ packages:
- name: golang/go@go1.19.2
- name: gotestyourself/gotestsum@v1.8.2
- name: BurntSushi/ripgrep@13.0.0
- name: direnv/direnv@v2.32.1
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ coverage:
# sample regex patterns
ignore:
- "magefiles"
- "examples"
- ".trunk"
- ".vscode"
- ".devcontainer"
- "vendor"
- "examples"
- "starter"
- ".licenses"
- ".examples"
14 changes: 0 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ go 1.18
require (
github.com/bitfield/script v0.20.2
github.com/dustin/go-humanize v1.0.0
github.com/gosuri/uiprogress v0.0.1
github.com/magefile/mage v1.14.0
github.com/manifoldco/promptui v0.9.0
github.com/matryer/is v1.4.0
github.com/mfridman/tparse v0.11.1
github.com/pterm/pterm v0.12.44
github.com/rakyll/gotest v0.0.6
github.com/ztrue/tracerr v0.3.0
golang.org/x/mod v0.5.1
)
Expand All @@ -20,23 +16,13 @@ require (
atomicgo.dev/cursor v0.1.1 // indirect
atomicgo.dev/keyboard v0.2.8 // indirect
bitbucket.org/creachadair/shell v0.0.7 // indirect
github.com/charmbracelet/lipgloss v0.4.0 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/containerd/console v1.0.3 // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/gookit/color v1.5.0 // indirect
github.com/gosuri/uilive v0.0.4 // indirect
github.com/itchyny/gojq v0.12.7 // indirect
github.com/itchyny/timefmt-go v0.1.3 // indirect
github.com/lithammer/fuzzysearch v1.1.5 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.11.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/sys v0.0.0-20220513210249-45d2b4557a2a // indirect
Expand Down
44 changes: 0 additions & 44 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,20 @@ github.com/MarvinJWendt/testza v0.4.2/go.mod h1:mSdhXiKH8sg/gQehJ63bINcCKp7RtYew
github.com/atomicgo/cursor v0.0.1/go.mod h1:cBON2QmmrysudxNBFthvMtN32r3jxVRIvzkUiF/RuIk=
github.com/bitfield/script v0.20.2 h1:4DexsRtBILVMEn3EZwHbtJdDqdk43sXI8gM3F04JXgs=
github.com/bitfield/script v0.20.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
github.com/charmbracelet/lipgloss v0.4.0 h1:768h64EFkGUr8V5yAKV7/Ta0NiVceiPaV+PphaW1K9g=
github.com/charmbracelet/lipgloss v0.4.0/go.mod h1:vmdkHvce7UzX6xkyf4cca8WlwdQ5RQr8fzta+xl7BOM=
github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw=
github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
github.com/gookit/color v1.5.0 h1:1Opow3+BWDwqor78DcJkJCIwnkviFi+rrOANki9BUFw=
github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo=
github.com/gosuri/uilive v0.0.4 h1:hUEBpQDj8D8jXgtCdBu7sWsy5sbW/5GhuO8KBwJ2jyY=
github.com/gosuri/uilive v0.0.4/go.mod h1:V/epo5LjjlDE5RJUcqx8dbw+zc93y5Ya3yg8tfZ74VI=
github.com/gosuri/uiprogress v0.0.1 h1:0kpv/XY/qTmFWl/SkaJykZXrBBzwwadmW8fRb7RJSxw=
github.com/gosuri/uiprogress v0.0.1/go.mod h1:C1RTYn4Sc7iEyf6j8ft5dyoZ4212h8G1ol9QQluh5+0=
github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
Expand All @@ -59,36 +45,14 @@ github.com/lithammer/fuzzysearch v1.1.5/go.mod h1:1R1LRNk7yKid1BaQkmuLQaHruxcC4H
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8=
github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo=
github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA=
github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg=
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mfridman/tparse v0.11.1 h1:rEub2HkmqNzAsGviYkwUDYHe2bkmPq7LdM4XC+kMUuI=
github.com/mfridman/tparse v0.11.1/go.mod h1:bdZlfNbMu3JYd5Ck+P6OIRnN9Lv4We4JYnD93rqQb+g=
github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68/go.mod h1:Xk+z4oIWdQqJzsxyjgl3P22oYZnHdZ8FFTHAQQt5BMQ=
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
github.com/muesli/termenv v0.9.0/go.mod h1:R/LzAKf+suGs4IsO95y7+7DpFHO0KABgnZqtlyx2mBw=
github.com/muesli/termenv v0.11.0 h1:fwNUbu2mfWlgicwG7qYzs06aOI8Z/zKPAv8J4uKbT+o=
github.com/muesli/termenv v0.11.0/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pterm/pterm v0.12.27/go.mod h1:PhQ89w4i95rhgE+xedAoqous6K9X+r6aSOI2eFF7DZI=
Expand All @@ -100,9 +64,6 @@ github.com/pterm/pterm v0.12.36/go.mod h1:NjiL09hFhT/vWjQHSj1athJpx6H8cjpHXNAK5b
github.com/pterm/pterm v0.12.40/go.mod h1:ffwPLwlbXxP+rxT0GsgDTzS3y3rmpAO1NMjUkGTYf8s=
github.com/pterm/pterm v0.12.44 h1:uGaHfenu6cIyKmiaUrC8SjRNv7P2fnN2WdUkuLOExsw=
github.com/pterm/pterm v0.12.44/go.mod h1:hJgLlBafm45w/Hr0dKXxY//POD7CgowhePaG1sdPNBg=
github.com/rakyll/gotest v0.0.6 h1:hBTqkO3jiuwYW/M9gL4bu0oTYcm8J6knQAAPUsJsz1I=
github.com/rakyll/gotest v0.0.6/go.mod h1:SkoesdNCWmiD4R2dljIUcfSnNdVZ12y8qK4ojDkc2Sc=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
Expand All @@ -118,12 +79,7 @@ github.com/ztrue/tracerr v0.3.0 h1:lDi6EgEYhPYPnKcjsYzmWw4EkFEoA/gfe+I9Y5f+h6Y=
github.com/ztrue/tracerr v0.3.0/go.mod h1:qEalzze4VN9O8tnhBXScfCrmoJo10o8TN5ciKjm6Mww=
golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38=
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
2 changes: 1 addition & 1 deletion magefiles/goreleaser.mage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/sheldonhull/magetools/pkg/req"
)

func checkEnvVar(envVar string, required bool) (string, error) {
func checkEnvVar(envVar string, required bool) (string, error) { //nolint:unused // Useful function to keep right now, though it's not used. I'll move to a build helpers package or something in the future.
envVarValue := os.Getenv(envVar)
if envVarValue == "" && required {
pterm.Error.Printfln(
Expand Down
2 changes: 0 additions & 2 deletions magefiles/mage.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import (
// mage:import
"github.com/sheldonhull/magetools/gotools"

// mage:import
_ "github.com/sheldonhull/magetools/licensing" // licensing provides a license checker and vendor tooling for the project
// mage:import
_ "github.com/sheldonhull/magetools/precommit"
)
Expand Down
Loading

0 comments on commit 045d3a2

Please sign in to comment.