Skip to content

Commit 1e3f81f

Browse files
authored
repo: update repo to use gha, newer go, etc (#7)
1 parent 4bc2cfa commit 1e3f81f

File tree

9 files changed

+47
-36
lines changed

9 files changed

+47
-36
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: run-ci
2+
on: [push]
3+
jobs:
4+
run-tests:
5+
runs-on: ubuntu-22.04
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-go@v2
9+
with:
10+
stable: true
11+
go-version: 1.18.7
12+
- name: Vet
13+
run: |
14+
make vet
15+
- name: Tests
16+
run: |
17+
make test

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*~
2-
bcrypt-tool
32
**/*.snap
43

4+
bcrypt-tool
5+
output/
6+
dist/

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.PHONY: build
2+
build: clean
3+
CGO_ENABLED=0 go build -o output/bcrypt-tool
4+
5+
.PHONY: clean
6+
clean:
7+
rm -f output/bcrypt-tool
8+
9+
.PHONY: test
10+
test:
11+
go test -race ./...
12+
13+
.PHONY: vet
14+
vet:
15+
go vet ./...
16+
17+
default: build

OSSMETADATA

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ bcrypt-tool
33

44
`bcrypt-tool` is a dandy CLI tool for generating and matching bcrypt hashes
55

6-
[![Go Report Card](https://goreportcard.com/badge/gophers.dev/cmds/bcrypt-tool)](https://goreportcard.com/report/gophers.dev/cmds/bcrypt-tool)
7-
[![Build Status](https://travis-ci.com/shoenig/bcrypt-tool.svg?branch=master)](https://travis-ci.com/shoenig/bcrypt-tool)
8-
[![GoDoc](https://godoc.org/gophers.dev/cmds/bcrypt-tool?status.svg)](https://godoc.org/gophers.dev/cmds/bcrypt-tool)
9-
[![NetflixOSS Lifecycle](https://img.shields.io/osslifecycle/shoenig/bcrypt-tool.svg)](OSSMETADATA)
106
[![GitHub](https://img.shields.io/github/license/shoenig/bcrypt-tool.svg)](LICENSE)
117

128
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/bcrypt-tool)
139

1410
# Project Overview
1511

16-
Module `gophers.dev/cmds/bcrypt-tool` provides a simple command line tool.
12+
Module `github.com/shoenig/bcrypt-tool` provides a simple command line tool.
1713

1814
# Getting Started
1915

@@ -26,7 +22,7 @@ $ sudo snap install bcrypt-tool
2622
#### Build from source
2723
The `bcrypt-tool` command can be compiled by running
2824
```bash
29-
$ go get gophers.dev/cmds/bcrypt-tool
25+
$ go get github.com/shoenig/bcrypt-tool
3026
```
3127

3228
### Examples
@@ -70,9 +66,9 @@ bcrypt-tool [action] parameter ...
7066

7167
# Contributing
7268

73-
The `gophers.dev/cmds/bcrypt-tool` module is always improving with new features
69+
The `github.com/shoenig/bcrypt-tool` module is always improving with new features
7470
and error corrections. For contributing bug fixes and new features please file an issue.
7571

7672
# License
7773

78-
The `gophers.dev/cmds/bcrypt-tool` module is open source under the [MIT](LICENSE) license.
74+
The `github.com/shoenig/bcrypt-tool` module is open source under the [MIT](LICENSE) license.

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module gophers.dev/cmds/bcrypt-tool
1+
module github.com/shoenig/bcrypt-tool
22

3-
go 1.16
3+
go 1.19
44

5-
require golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc
5+
require golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b

go.sum

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc h1:+q90ECDSAQirdykUN6sPEiBXBsp8Csjcca8Oy7bgLTA=
2-
golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
3-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
4-
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
5-
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
6-
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
7-
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
1+
golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b h1:huxqepDufQpLLIRXiVkTvnxrzJlpwmIWAObmcCcUFr0=
2+
golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const (
1717
hash [password] <cost> Generate hash given password and optional cost (4-31)
1818
match [password] [hash] Print "yes" and return 0 if password is a match
1919
for hash, or print "no" and return 1 otherwise
20-
cost [hash] Print the cost of hash (4-31)
21-
`
20+
cost [hash] Print the cost of hash (4-31)`
2221
)
2322

2423
func main() {

0 commit comments

Comments
 (0)