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

merge upstream #1

Open
wants to merge 96 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
d4a3ea4
move to circleci for CI
frapposelli Mar 5, 2019
84c9fcf
update CI README badge
frapposelli Mar 5, 2019
9df20db
update deps and move to go mod
frapposelli Aug 20, 2019
842dc42
fix goreleaser for docker
frapposelli Aug 20, 2019
59966a7
fix automated release process
frapposelli Aug 20, 2019
6875f7f
update vendor dir after changes
frapposelli Aug 21, 2019
bc308a1
add github CI
frapposelli Oct 11, 2019
e04ac05
remove appveyor CI
frapposelli Oct 11, 2019
781f77f
move to github actions
frapposelli Dec 30, 2019
93ea08c
fix readme and logo
frapposelli Jan 2, 2020
980f136
major license recognition improvements
frapposelli Dec 30, 2019
038b094
fix readme
frapposelli Jan 4, 2020
7725f8b
disable artifact signing
frapposelli Jan 4, 2020
1f49b5c
fix release process
frapposelli Jan 5, 2020
ed42594
cleanup
frapposelli Jan 5, 2020
2baa50c
vendor cleanup
frapposelli Jan 11, 2020
749cb0f
replace for minhash-lsh
frapposelli Jan 11, 2020
7ee333c
Update license-detection library and Go version
frapposelli Nov 24, 2020
622716c
vendor update
frapposelli Nov 24, 2020
b4cd831
fix deprecated syntax in goreleaser
frapposelli Nov 24, 2020
95132e0
Create FUNDING.yml
frapposelli Nov 24, 2020
a108df3
fix vendoring for ekzhu/minhash-lsh
frapposelli Nov 27, 2020
f7348b8
switching license library to google/licensecheck
frapposelli Dec 1, 2020
dc59aff
vendor update
frapposelli Dec 1, 2020
37b1e1a
add -t to check/list/graph test dependencies
frapposelli Dec 15, 2020
0e04f80
exclude docs-specific license files from search list
frapposelli Jan 18, 2021
254bfb1
fix homebrew definition
frapposelli Jan 18, 2021
e7528bc
add reading configuration from stdin
frapposelli Jan 18, 2021
a4048a3
move to allowlist and denylist
frapposelli Jan 19, 2021
851df83
fix readme terminology
frapposelli Mar 23, 2021
1ac97d4
update CI to go 1.16 and other minor fixes
frapposelli Mar 23, 2021
94f6086
add dependabot and codeql analysis
frapposelli Mar 23, 2021
1ca5e63
Bump github.com/sirupsen/logrus from 1.7.0 to 1.8.1
dependabot[bot] Mar 23, 2021
3795e8d
Bump github.com/jessevdk/go-flags from 1.4.0 to 1.5.0
dependabot[bot] Mar 23, 2021
46ed39f
Bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0
dependabot[bot] Mar 27, 2021
349d9fb
Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
dependabot[bot] Mar 27, 2021
7a5ed45
fix go vendor
frapposelli Mar 31, 2021
fecee0c
Bump codecov/codecov-action from 1 to 1.5.0
dependabot[bot] May 12, 2021
3c9b071
Bump github.com/emicklei/dot from 0.15.0 to 0.16.0
dependabot[bot] May 5, 2021
09935c3
Bump goreleaser/goreleaser-action from 2 to 2.5.0
dependabot[bot] May 12, 2021
f9b99c9
fix logo for dark theme
frapposelli May 12, 2021
70c5d75
Bump goreleaser/goreleaser-action from 2.5.0 to 2.6.0
dependabot[bot] May 27, 2021
08cc9c1
Bump goreleaser/goreleaser-action from 2.6.0 to 2.6.1
dependabot[bot] May 31, 2021
2157cb4
Bump codecov/codecov-action from 1.5.0 to 1.5.2
dependabot[bot] Jun 9, 2021
838e0e5
Bump codecov/codecov-action from 1.5.2 to 2.0.1
dependabot[bot] Jul 19, 2021
2e5e8ae
Bump codecov/codecov-action from 2.0.1 to 2.0.2
dependabot[bot] Jul 23, 2021
ec3c0e6
Bump goreleaser/goreleaser-action from 2.6.1 to 2.7.0
dependabot[bot] Jul 26, 2021
ee3c75c
Bump codecov/codecov-action from 2.0.2 to 2.0.3
dependabot[bot] Aug 24, 2021
e360968
Bump codecov/codecov-action from 2.0.3 to 2.1.0
dependabot[bot] Sep 13, 2021
926c4f2
Bump goreleaser/goreleaser-action from 2.7.0 to 2.8.0
dependabot[bot] Oct 15, 2021
b5252e9
Bump actions/checkout from 2.3.4 to 2.4.0
dependabot[bot] Nov 3, 2021
ab57a15
Bump goreleaser/goreleaser-action from 2.8.0 to 2.8.1
dependabot[bot] Jan 17, 2022
49b07e6
Bump goreleaser/goreleaser-action from 2.8.1 to 2.9.1
dependabot[bot] Feb 28, 2022
202f022
Bump actions/checkout from 2.4.0 to 3
dependabot[bot] Mar 2, 2022
fdcb5b4
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
dependabot[bot] Mar 16, 2022
cc3ad85
Bump codecov/codecov-action from 2.1.0 to 3
dependabot[bot] Apr 5, 2022
fddb7e3
Bump actions/setup-go from 2 to 3
dependabot[bot] Apr 8, 2022
5778744
Bump github/codeql-action from 1 to 2
dependabot[bot] Apr 26, 2022
f89ac0b
Bump goreleaser/goreleaser-action from 2.9.1 to 3.0.0
dependabot[bot] May 23, 2022
8fadcae
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
dependabot[bot] Jun 6, 2022
a633ac4
Bump github.com/stretchr/testify from 1.7.2 to 1.7.4
dependabot[bot] Jun 21, 2022
769d6bc
Bump github.com/emicklei/dot from 0.16.0 to 1.0.0
dependabot[bot] Jun 22, 2022
57ab949
Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
dependabot[bot] Jun 24, 2022
75f9a34
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
dependabot[bot] Jun 29, 2022
6aeb5b6
Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
dependabot[bot] Jul 19, 2022
7711993
Bump goreleaser/goreleaser-action from 3.0.0 to 3.1.0
dependabot[bot] Aug 26, 2022
525e5ba
Bump goreleaser/goreleaser-action from 3.1.0 to 3.2.0
dependabot[bot] Oct 18, 2022
a9e4f5f
Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
dependabot[bot] Oct 24, 2022
dadcfac
Bump github.com/emicklei/dot from 1.0.0 to 1.1.0
dependabot[bot] Nov 8, 2022
3695903
Bump github.com/emicklei/dot from 1.1.0 to 1.2.0
dependabot[bot] Nov 18, 2022
13b50a0
Bump goreleaser/goreleaser-action from 3.2.0 to 4.1.0
dependabot[bot] Dec 13, 2022
878f5bd
Bump goreleaser/goreleaser-action from 4.1.0 to 4.2.0
dependabot[bot] Jan 30, 2023
bcbb802
Bump github.com/emicklei/dot from 1.2.0 to 1.3.0
dependabot[bot] Jan 30, 2023
61f834f
Bump github.com/emicklei/dot from 1.3.0 to 1.3.1
dependabot[bot] Feb 22, 2023
c0ba1bc
Bump actions/setup-go from 3 to 4
dependabot[bot] Mar 15, 2023
5be2b27
Bump github.com/emicklei/dot from 1.3.1 to 1.4.2
dependabot[bot] Mar 28, 2023
4d1d970
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
dependabot[bot] Apr 2, 2023
f3200d6
Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2
dependabot[bot] May 18, 2023
120db7c
Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3
dependabot[bot] Jun 5, 2023
f32d3dc
Bump goreleaser/goreleaser-action from 4.2.0 to 4.3.0
dependabot[bot] Jun 12, 2023
b3052af
Bump github.com/emicklei/dot from 1.4.2 to 1.5.0
dependabot[bot] Jun 20, 2023
071b03a
Bump github.com/emicklei/dot from 1.5.0 to 1.6.0
dependabot[bot] Jul 31, 2023
23eb2e6
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
b35c0a8
Bump goreleaser/goreleaser-action from 4.3.0 to 4.6.0
dependabot[bot] Sep 5, 2023
cc57270
Bump goreleaser/goreleaser-action from 4.6.0 to 5.0.0
dependabot[bot] Sep 12, 2023
ba4de41
Bump actions/setup-go from 4 to 5
dependabot[bot] Dec 6, 2023
e8f9029
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 13, 2023
f9902bf
Bump github.com/emicklei/dot from 1.6.0 to 1.6.1
dependabot[bot] Jan 18, 2024
8c1b558
go mod update to 1.22
frapposelli Mar 11, 2024
9460b11
Bump github.com/emicklei/dot from 1.6.1 to 1.6.2
dependabot[bot] Apr 16, 2024
bb459bf
changed codecov token
frapposelli May 13, 2024
4515071
Bump goreleaser/goreleaser-action from 5.0.0 to 5.1.0
dependabot[bot] May 13, 2024
9841a9d
Bump github.com/jessevdk/go-flags from 1.5.0 to 1.6.1
dependabot[bot] Jun 17, 2024
13aaeef
Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0
dependabot[bot] Jun 5, 2024
e8c56d3
(chore) update goreleaser config to version 2
frapposelli Jul 22, 2024
d6d1e51
Bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0
dependabot[bot] Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: frapposelli
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
ci:
name: go${{ matrix.go_version }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: ['1.22']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Use Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: run coverage
run: |
bash hack/coverage
- name: Install and check
run: |
go build -mod=vendor
bash -c "./wwhrd check"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.go_version == '1.22' && matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./.cover/cover.out
fail_ci_if_error: true
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CodeQL"

on:
push:
branches: [ master ]
paths:
- '**.go'
pull_request:
branches: [ master ]
paths:
- '**.go'
schedule:
- cron: '38 10 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release
on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout entire git history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.16'
- name: Registry login
run: docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} docker.io
env:
DOCKER_USERNAME: frapposelli
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_KEY }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ _testmain.go

wwhrd
wwhrd.exe
wwhrd-graph.png

.cover
.vscode

dist/

.idea/
51 changes: 51 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64

archives:
- id: github
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
files:
- LICENSE*
- README*
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dockers:
- image_templates:
- "frapposelli/wwhrd:latest"
- "frapposelli/wwhrd:{{ .Tag }}"
- "frapposelli/wwhrd:v{{ .Major }}"
goos: linux
goarch: amd64
dockerfile: Dockerfile
brews:
- directory: Formula
repository:
owner: frapposelli
name: homebrew-tap
commit_author:
name: Fabio Rapposelli
email: [email protected]
homepage: "https://github.com/frapposelli/wwhrd/blob/master/README.md"
description: "Have Henry Rollins check vendor licenses in your Go project"
test: |
system "#{bin}/wwhrd -v"
install: |
bin.install "wwhrd"
41 changes: 0 additions & 41 deletions .goreleaser.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

11 changes: 4 additions & 7 deletions .wwhrd.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
blacklist:
denylist:
- GPL-2.0

whitelist:
allowlist:
- Apache-2.0
- MIT
- NewBSD
- FreeBSD
- ISC

exceptions:
- github.com/davecgh/go-spew/spew/...
- BSD-2-Clause
- BSD-3-Clause
57 changes: 0 additions & 57 deletions Gopkg.lock

This file was deleted.

38 changes: 0 additions & 38 deletions Gopkg.toml

This file was deleted.

Loading