TIBCOSoftware / flogo-cli

Project Flogo Command Line Interface
http://flogo.io
BSD 3-Clause "New" or "Revised" License
57 stars 28 forks source link

flogo build fails in windows environment #85

Closed apandura-tibco closed 6 years ago

apandura-tibco commented 6 years ago

I have took latest flogo-cli with go get -u github.com/TIBCOSoftware/flogo-cli/... command and also installed dep using go get -u github.com/golang/dep/cmd/dep in my windows environment.

When I try to build a basic flogo application I get the following error:

C:\***\flogo-web>flogo build
imports.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOPATH)
main.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/app" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOPATH)
main.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOPATH)
main.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/logger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOPATH)
vendor\github.com\Sirupsen\logrus\terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
        C:\Go\src\golang.org\x\crypto\ssh\terminal (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\crypto\ssh\terminal (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:12:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/definition" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:13:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/extension" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:14:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/instance" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:15:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/model" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:16:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/provider" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:17:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/tester" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:18:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/action" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:19:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/data" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:21:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/util" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\definition_ser.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/activity" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\mapper.go:6:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/mapper" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension\extension.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/model/simple" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\recorder.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/service" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\exec.go:4:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/support" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider\provider.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/script/fggos" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos\linkexpr.go:9:2: cannot find package "github.com/japm/goScript" in any of:
        C:\Go\src\github.com\japm\goScript (from $GOROOT)
        C:\***\goworkspace\src\github.com\japm\goScript (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/trigger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine/runner" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\service.go:11:2: cannot find package "github.com/julienschmidt/httprouter" in any of:
        C:\Go\src\github.com\julienschmidt\httprouter (from $GOROOT)
        C:\***\goworkspace\src\github.com\julienschmidt\httprouter (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\app\config.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/config" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\logger\logfactory.go:7:2: cannot find package "github.com/Sirupsen/logrus" in any of:
        C:\Go\src\github.com\Sirupsen\logrus (from $GOROOT)
        C:\***\goworkspace\src\github.com\Sirupsen\logrus (from $GOPATH)
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:22:2: cannot find package "golang.org/x/sys/windows" in any of:
        C:\Go\src\golang.org\x\sys\windows (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\sys\windows (from $GOPATH)
FATAL: command "build" failed: exit status 1
apandura-tibco commented 6 years ago

My flogo JSON is as follows:

{
  "name": "flogo-web",
  "type": "flogo:app",
  "version": "0.0.1",
  "description": "Empty flogo app",
  "triggers": [],
  "actions": [
    {
      "ref": "github.com/TIBCOSoftware/flogo-contrib/action/flow"
    }
  ]
}
mellistibco commented 6 years ago

Did you create a new app from the json (flogo create -f app,json) or are you running flogo build from an existing app structure?

apandura-tibco commented 6 years ago

I have created it with the new cli

apandura-tibco commented 6 years ago

The issue was due to go version. In windows we are only able to get flogo-cli working in go v1.9+

Closing the issue.