#29 srpm/go.lua: avoid remove char 'v' from project name
Merged a year ago by eclipseo. Opened a year ago by sixg0000d.
Unknown source master  into  master

file modified
+2 -1
@@ -67,7 +67,8 @@

    result = string.gsub(result, ":", ".")

    -- some projects have a name that end up in a number, and *also* add release

    -- numbers on top of it, keep a - prefix before version strings

-   result = string.gsub(result, "%-v([%.%d])", "-%1")

+   result = string.gsub(result, "%-v([%.%d])$", "-%1")

+   result = string.gsub(result, "%-v([%.%d]%-)", "-%1")

    return(result)

  end

  

example:
If goipath is github.com/v2fly/v2ray-core/v4/main/confloader , the goname should be golang-github-v2fly-v2ray-core-4-main-confloader .
But in current version go.lua, function rpmname, the result is golang-github-2fly-2ray-core-4-main-confloader .

rebased onto 65a2d82

a year ago

This change will need to be matched in go2rpm.

Pull-Request has been merged by eclipseo

a year ago
Metadata