From 7fd5584c6fdf3d91098ec22b61ada7e5a5a550e6 Mon Sep 17 00:00:00 2001 From: Mikhail Kopylov Date: Sat, 10 Dec 2022 23:29:11 +0300 Subject: [PATCH] Remove redundant `replace` in `go.mod` So that the app can be installed with `go install`. See https://github.com/golang/go/issues/40276 for details. --- CHANGELOG.md | 4 ++++ README.md | 12 ++++++++++++ go.mod | 3 --- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1547a33..4804de1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- `go install` that does not work with + ## [0.2.0] - 2022-12-10 ### Changed diff --git a/README.md b/README.md index 64581b3..ba4c20b 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,26 @@ A simple CLI utility to observe changes in non-sealed Vault secrets, like KV. [![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge)](http://godoc.org/github.com/mih-kopylov/vault-diff) [![Go Report Card](https://goreportcard.com/badge/github.com/mih-kopylov/vault-diff?style=for-the-badge)](https://goreportcard.com/report/github.com/mih-kopylov/vault-diff) +## Install + +Run + +```shell +go install github.com/mih-kopylov/vault-diff/app/vd@latest +``` + +Or just download a binary from [the latest](https://github.com/mih-kopylov/vault-diff/releases/latest) release + ## Usage The following command will show difference between 15 and 16 versions of `/my/secret` KV secret. + ```shell vd diff --url http://localhost:8200 --token hvs.replace-token --left /my/secret:15 --right /my/secret:16 ``` It can also compare different secrets of any versions. + ```shell vd diff --url http://localhost:8200 --token hvs.replace-token --left /my/secret:15 --right /my/another/secret:33 ``` diff --git a/go.mod b/go.mod index d85e268..3a7b9a8 100644 --- a/go.mod +++ b/go.mod @@ -69,6 +69,3 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -// v1.4.7 breaks compilation -replace github.com/hashicorp/go-plugin v1.4.7 => github.com/hashicorp/go-plugin v1.4.6