Skip to content

If you going to build the golang with requirements(import) in the jenkins, you can use this script

Notifications You must be signed in to change notification settings

ralfyang/golang_requirements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

golang_requirements

  • If you going to build the golang with requirements(import) in the jenkins, you can use this script

Easy to use

# On your golang source dir
curl -sL bit.ly/go_req | bash

All Source code

## Have to define the WORKDIR as below
#WORKDIR="[PLEASE MAKE SURE THE WORKDIR]"
WORKDIR="./"
eval $(cat $WORKDIR/main.go | xargs 2> /dev/null | sed -e 's/^package.*.import (//g' -e 's/ ).*//g' -e $'s/ /\\\n/g' |egrep "^github" | awk '{print "go get",$1,";"}' | xargs | sed -e 's/;$//g')

About

If you going to build the golang with requirements(import) in the jenkins, you can use this script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages