go-swagger: Deb installation is broken with the new version with the "v" prefix

Problem statement

I have go-swagger installed from the debian package according to the instruction https://goswagger.io/install.html I’m trying to update it and receive the next error:

$ sudo apt-get install swagger 
...
The following packages will be upgraded:
  swagger
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
...
dpkg: error processing archive /var/cache/apt/archives/swagger_v0.17.0_amd64.deb (--unpack):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'swagger':
 error in 'Version' field string 'v0.17.0': version number does not start with digit
Errors were encountered while processing:
 /var/cache/apt/archives/swagger_v0.17.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It happens because the new version has the v prefix v0.17.0, and the previous does not: 0.16.0

Environment

swagger version: v.0.17.0 OS: Ubuntu 18.04

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I’ll update our build script so the debs end up with the expected format

Thanks! Works great. I believe we can close this issue now.