#14 make use of golist --with-tests in dynamic buildrequires
Merged 4 years ago by nim. Opened 4 years ago by nim.
nim/go-rpm-macros golist-with-tests  into  master

file modified
+5 -10
@@ -184,16 +184,11 @@ 

  else

    golistargs   = "--package-path %{goipath" .. rpm.expand("%{?-z*}") .. "}"

  end

- local golistcmd = rpm.expand('GOPATH="%{?gobuilddir:%{gobuilddir}:}${GOPATH:+${GOPATH}:}%{?gopath}" ' ..

-                              'GO111MODULE=off ' ..

-                              "golist --imported " .. golistargs ..

-                                    " --template 'golang({{.}})\\\\n'" ..

-                                    " --skip-self")

- -- https://pagure.io/golist/issue/3

- print('(\\n' ..

-       '  ' .. golistcmd .. '\\n' ..

-       '  ' .. golistcmd .. ' --tests\\n' ..

-       ') | sort -u\\n')

+ print(rpm.expand('GOPATH="%{?gobuilddir:%{gobuilddir}:}${GOPATH:+${GOPATH}:}%{?gopath}" ' ..

+                  'GO111MODULE=off ' ..

+                  "golist --imported " .. golistargs ..

+                        " --template 'golang({{.}})\\\\n'" ..

+                        " --with-tests --skip-self\\n"))

  }

  

  # Try to install Go package files in sensible locations, with strict directory

no initial comment

Pull-Request has been merged by nim

4 years ago
Metadata