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 create fails when using the -flv option and latest dep #88

Open fcastill opened 6 years ago

fcastill commented 6 years ago

When running the command

flogo create -flv github.com/TIBCOSoftware/flogo-lib@master,github.com/TIBCOSoftware/flogo-contrib@master -f /path/to/my/flogo.json myengine

It fails saying Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints

It used to work when using dep v0.3.2 and it is failing after I upgraded to dep 0.4.1

I'm using go 1.9.3 and the latest dep v0.4.1 in mac, also go 1.9.4 and dep v0.4.1 combination fails on alpine.

These are the logs:

Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints:
    v0.5.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.5.1, as it is not allowed by constraint master from project flogo-web.
    v0.5.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.5.0, as it is not allowed by constraint master from project flogo-web.
    v0.4.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.4.1, as it is not allowed by constraint master from project flogo-web.
    v0.4.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.4.0, as it is not allowed by constraint master from project flogo-web.
    v0.3.4: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.4, as it is not allowed by constraint master from project flogo-web.
    v0.3.3: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.3, as it is not allowed by constraint master from project flogo-web.
    v0.3.2: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.2, as it is not allowed by constraint master from project flogo-web.
    v0.3.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.1, as it is not allowed by constraint master from project flogo-web.
    v0.3.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.0, as it is not allowed by constraint master from project flogo-web.
    v0.2.3: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.3, as it is not allowed by constraint master from project flogo-web.
    v0.2.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.1, as it is not allowed by constraint master from project flogo-web.
    v0.2.2-beta1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.2-beta1, as it is not allowed by constraint master from project flogo-web.
    v0.2.0-Final: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.0-Final, as it is not allowed by constraint master from project flogo-web.
    master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
    activity_output: Could not introduce github.com/TIBCOSoftware/flogo-lib@activity_output, as it is not allowed by constraint master from project flogo-web.
    dep: Could not introduce github.com/TIBCOSoftware/flogo-lib@dep, as it is not allowed by constraint master from project flogo-web.
    entrypoint: Could not introduce github.com/TIBCOSoftware/flogo-lib@entrypoint, as it is not allowed by constraint master from project flogo-web.
    expr-mapper: Could not introduce github.com/TIBCOSoftware/flogo-lib@expr-mapper, as it is not allowed by constraint master from project flogo-web.
    fireweed: Could not introduce github.com/TIBCOSoftware/flogo-lib@fireweed, as it is not allowed by constraint master from project flogo-web.
    flogo-service-go: Could not introduce github.com/TIBCOSoftware/flogo-lib@flogo-service-go, as it is not allowed by constraint master from project flogo-web.
    property-resolver-support: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-resolver-support, as it is not allowed by constraint master from project flogo-web.
    property-support-contrib: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-support-contrib, as it is not allowed by constraint master from project flogo-web.
    state-flow-service-refactoring: Could not introduce github.com/TIBCOSoftware/flogo-lib@state-flow-service-refactoring, as it is not allowed by constraint master from project flogo-web.
    subflow_support: Could not introduce github.com/TIBCOSoftware/flogo-lib@subflow_support, as it is not allowed by constraint master from project flogo-web.
    wi-1.14.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@wi-1.14.0, as it is not allowed by constraint master from project flogo-web.
    wi-1.15.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@wi-1.15.0, as it is not allowed by constraint master from project flogo-web.
FATAL: command "create" failed: exit status 1

(node:39449) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
Solving failure: No versions of github.com/TIBCOSoftware/flogo-lib met constraints:
    v0.5.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.5.1, as it is not allowed by constraint master from project flogo-web.
    v0.5.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.5.0, as it is not allowed by constraint master from project flogo-web.
    v0.4.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.4.1, as it is not allowed by constraint master from project flogo-web.
    v0.4.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.4.0, as it is not allowed by constraint master from project flogo-web.
    v0.3.4: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.4, as it is not allowed by constraint master from project flogo-web.
    v0.3.3: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.3, as it is not allowed by constraint master from project flogo-web.
    v0.3.2: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.2, as it is not allowed by constraint master from project flogo-web.
    v0.3.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.1, as it is not allowed by constraint master from project flogo-web.
    v0.3.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.3.0, as it is not allowed by constraint master from project flogo-web.
    v0.2.3: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.3, as it is not allowed by constraint master from project flogo-web.
    v0.2.1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.1, as it is not allowed by constraint master from project flogo-web.
    v0.2.2-beta1: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.2-beta1, as it is not allowed by constraint master from project flogo-web.
    v0.2.0-Final: Could not introduce github.com/TIBCOSoftware/flogo-lib@v0.2.0-Final, as it is not allowed by constraint master from project flogo-web.
    master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
    activity_output: Could not introduce github.com/TIBCOSoftware/flogo-lib@activity_output, as it is not allowed by constraint master from project flogo-web.
    dep: Could not introduce github.com/TIBCOSoftware/flogo-lib@dep, as it is not allowed by constraint master from project flogo-web.
    entrypoint: Could not introduce github.com/TIBCOSoftware/flogo-lib@entrypoint, as it is not allowed by constraint master from project flogo-web.
    expr-mapper: Could not introduce github.com/TIBCOSoftware/flogo-lib@expr-mapper, as it is not allowed by constraint master from project flogo-web.
    fireweed: Could not introduce github.com/TIBCOSoftware/flogo-lib@fireweed, as it is not allowed by constraint master from project flogo-web.
    flogo-service-go: Could not introduce github.com/TIBCOSoftware/flogo-lib@flogo-service-go, as it is not allowed by constraint master from project flogo-web.
    property-resolver-support: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-resolver-support, as it is not allowed by constraint master from project flogo-web.
    property-support-contrib: Could not introduce github.com/TIBCOSoftware/flogo-lib@property-support-contrib, as it is not allowed by constraint master from project flogo-web.
    state-flow-service-refactoring: Could not introduce github.com/TIBCOSoftware/flogo-lib@state-flow-service-refactoring, as it is not allowed by constraint master from project flogo-web.
    subflow_support: Could not introduce github.com/TIBCOSoftware/flogo-lib@subflow_support, as it is not allowed by constraint master from project flogo-web.
    wi-1.14.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@wi-1.14.0, as it is not allowed by constraint master from project flogo-web.
    wi-1.15.0: Could not introduce github.com/TIBCOSoftware/flogo-lib@wi-1.15.0, as it is not allowed by constraint master from project flogo-web.
FATAL: command "create" failed: exit status 1

Note that for @master tag it says

    master: Could not introduce github.com/TIBCOSoftware/flogo-lib@master, as its subpackage github.com/TIBCOSoftware/flogo-lib does not contain usable Go code (*build.NoGoError).. (Package is required by (root).)
mellistibco commented 6 years ago

This issue is related to the fact that the repositories don't have any go code at the root. A quick workaround is to specify a package rather than the root repository. The constraint will still be added to the toml:

flogo create -f somefile.json -flv github.com/TIBCOSoftware/flogo-contrib/action/flow@master