As an example, if you try to run on pagure.io/golist, it will work and pick the latest tag 0.9.0. This will checkout the tag after go get, so everything works. But if you run it again, then go get will see the existing copy, get confused by the internal stuff, and bomb out. The --clean/-C option allows cleaning out the existing copy, so you can run go2rpm as many times on a previously-cached repo as you want. The --clean-all can be used to clean the whole cache, if necessary.
As an example, if you try to run on
pagure.io/golist, it will work and pick the latest tag 0.9.0. This will checkout the tag aftergo get, so everything works. But if you run it again, thengo getwill see the existing copy, get confused by theinternalstuff, and bomb out. The--clean/-Coption allows cleaning out the existing copy, so you can run go2rpm as many times on a previously-cached repo as you want. The--clean-allcan be used to clean the whole cache, if necessary.