GithubHelp home page GithubHelp logo

mashling create myApp fails about mashling HOT 11 CLOSED

yxuco avatar yxuco commented on August 16, 2024
mashling create myApp fails

from mashling.

Comments (11)

pointlander avatar pointlander commented on August 16, 2024

Pulling down the dependencies works for me (tested on linux and macOS). I would guess this is a network issue?

from mashling.

yxuco avatar yxuco commented on August 16, 2024

I have connected to the internet and have access to other github resources. However, the above link on go.googleresource.com does not exist. All the failed packages are in fact at github.com/golang, which maybe why they failed.

from mashling.

pointlander avatar pointlander commented on August 16, 2024

Perhaps a git compatibility issue? Which version of git do you have? (Also which computer platform are you using?) Thanks.

from mashling.

jeffreybozek avatar jeffreybozek commented on August 16, 2024

@yxuco Can you post your Go environment? (go version, GOPATH, etc...)? How are you pulling down the mashling repository (should be: go get -u github.com/TIBCOSoftware/mashling/...)? Do you have the latest version of GB installed? It can be found here: https://getgb.io. Finally, which git version are you using? Perhaps git is ignoring redirects or you are behind a proxy?

from mashling.

yxuco avatar yxuco commented on August 16, 2024

I updated my git to the latest version 2.15.1. The error occurs at the following git command. However, it works if I change the URL to github.com/golang.

git clone https://go.googlesource.com/net /Users/yxu/go/src/golang.org/x/net
Cloning into '/Users/yxu/go/src/golang.org/x/net'...
fatal: https://go.googlesource.com/net/info/refs not valid: is this a git repository?
git version
git version 2.15.1
git clone https://github.com/golang/net /Users/yxu/go/src/golang.org/x/net
Cloning into '/Users/yxu/go/src/golang.org/x/net'...

Searched the error on internet, and the following post says that it is a problem of git repo server config issue (i.e., a problem of go.googlesource.com) How did you setup your git to get it to work? Is there a way to change the URL to use github.com/golang, instead of go.googlesource.com?

https://stackoverflow.com/questions/19698352/cant-clone-git-repos-via-http-info-refs-not-found
You will need to run git update-server-info on the server to generate the files necessary for the “dumb protocol” to work.

from mashling.

pointlander avatar pointlander commented on August 16, 2024

On my systems git clone https://go.googlesource.com/net works with:
git version 2.14.3 (Apple Git-98)
git version 2.7.4
git version 2.1.4

from mashling.

yxuco avatar yxuco commented on August 16, 2024

Got it working with the pre-installed git on my mac under /usr/bin, which is version 2.14.3 (Apple Git-98). For some weird reason, other installed git version does not work on git clone https://go.googlesource.com. This may not be an issue after all. Thanks.

from mashling.

yxuco avatar yxuco commented on August 16, 2024

See a different error when using "mashling create mashdemo":
........
github.com/lightstep/lightstep-tracer-go
FATAL: command "build" failed: exit status 2
Mashling gateway successfully built!

Then, tried to run "gb build" from the new project root folder, but got this:

/Users/yxu/Developer/go_workspace/mashdemo> gb build

github.com/TIBCOSoftware/mashling/lib/util

util.go:74:18: cannot call non-function element.Name (type string)
FATAL: command "build" failed: exit status 2

from mashling.

pointlander avatar pointlander commented on August 16, 2024

Yeah, that is fixed in the pull request: #96 Try building a recipe from: https://github.com/TIBCOSoftware/mashling-recipes Perhaps this recipe: https://github.com/TIBCOSoftware/mashling-recipes/tree/master/recipes/rest-conditional-gateway

from mashling.

yxuco avatar yxuco commented on August 16, 2024

That works. Thanks.

from mashling.

pointlander avatar pointlander commented on August 16, 2024

A workaround for the primary git issue has been found. On Apple platforms the Apple build of git should be used. A pull request for the secondary issue has now been merged. The pull request updated the default manifest.

from mashling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.