lucachr/nitrogen

Unable to go install root directory with no go files

Closed this issue · 1 comments

Issues with go projects with no base *.go files, for example:

golang.org/x/crypto f7445b17d61953e333441674c2d11e91ae4559d3

package golang.org/x/crypto
    imports golang.org/x/crypto
    imports golang.org/x/crypto: no buildable Go source files in /Users/owen/projects/go/src/golang.org/x/crypto

This is because there are no *.go files in the root directory of the repos.

$ /projects/go/src/golang.org/x/crypto
$ ls
AUTHORS     README      cast5       nacl        outupt      salsa20     twofish
CONTRIBUTORS    bcrypt      curve25519  ocsp        pbkdf2      scrypt      xtea
LICENSE     blowfish    hkdf        openpgp     poly1305    sha3        xts
PATENTS     bn256       md4     otr     ripemd160   ssh

For now, I commented out the last steps of install

function install {
    # If something goes wrong, bring repositories to the
    # standard version.
    trap clean SIGHUP SIGINT SIGTERM

    fmap go_get $DEP_FILE

    fmap select_version $DEP_FILE

   # cd $PKG_DIR
   # echo "install: $(strip_gopath $PKG_DIR)"
   # go install

    if [[ "$1" == '--no-clean' ]]; then
        exit 0
    fi

    # All right, clean reposiories and return
    clean    
}

Nevermind. I was skipping the go get -d PACKAGE part for that package. Works.