Skip to content

Commit

Permalink
Fix packaging
Browse files Browse the repository at this point in the history
* Build with `go build`,
* Remove redo support,
* Mention how to install with `go install`,
* Upgrade go to 1.21 in README.md (still must be fine with Go 1.18).
  • Loading branch information
igoose1 committed Jan 23, 2024
1 parent dfd65da commit 8808922
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 14 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ documentation][minisign-docs]. Minitrust relies solely on

MINITRUST_DIR name of the trusted directory (default: ~/.minisign/trusted)

## Compile
## Install

Build from source with Go 1.18+.
The easiest way to install it is with `go install`:

% go build -o . ./cmd/minitrust/minitrust.go
% go install github.com/igoose1/minitrust@latest

Also, building with redo is supported.
## Compile

% redo
If you have a source code, you can build it with Go 1.21+.

For more information about redo, I recommend installing
[goredo](http://www.goredo.cypherpunks.ru/).
% go build
1 change: 0 additions & 1 deletion all.do

This file was deleted.

1 change: 0 additions & 1 deletion clean.do

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/igoose1/minitrust

go 1.18
go 1.21

require github.com/jedisct1/go-minisign v0.0.0-20230211184525-1f273d8dc776

Expand Down
2 changes: 1 addition & 1 deletion cmd/minitrust/minitrust.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"time"

"github.com/igoose1/minitrust"
"github.com/igoose1/minitrust/pkg/minitrust"
"github.com/jedisct1/go-minisign"
)

Expand Down
3 changes: 0 additions & 3 deletions minitrust.do

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8808922

Please sign in to comment.