Add a warning if spec is applied on a dirty worktree (#1966)

* Add a warning if spec is applied on a dirty worktree

* Update go dependencies after rebase

* Use the console package for showing the warning

* Fix merge conflicts

* Handle errors and use better messages

Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Kuntal Majumder
2021-05-24 21:36:14 +05:30
committed by GitHub
co-authored by Sanket Sudake
parent 4a1fc11b2d
commit a9c56e5bb2
3 changed files with 75 additions and 1 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ require (
github.com/emicklei/go-restful-openapi v1.2.0
github.com/fsnotify/fsnotify v1.4.9
github.com/ghodss/yaml v1.0.0
github.com/go-git/go-git/v5 v5.2.0
github.com/go-ini/ini v1.62.0 // indirect
github.com/go-openapi/spec v0.19.3
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
@@ -32,7 +33,7 @@ require (
github.com/gotestyourself/gotestyourself v2.2.0+incompatible // indirect
github.com/graymeta/stow v0.0.0-20180719215413-7b5498c561bb
github.com/hashicorp/go-multierror v1.0.0
github.com/imdario/mergo v0.3.5
github.com/imdario/mergo v0.3.9
github.com/influxdata/influxdb v1.2.0
github.com/life1347/color v1.7.0
github.com/marstr/guid v1.1.0 // indirect