Skip to content

Cannot create tuple lines if hosted on gitlab with deeper project structure #14

@mfechner

Description

@mfechner

Hi,

I just tried to create a new port for semgrep:
https://gitlab.fechner.net/mfechner/Gitlab/-/commit/a0268faf641510cabb4d223c525e51559138501b

The port is far from being complete, but as next step I need now to generate the GH and GL tuples to make the required go modules available for the build process.

If I execute make gomod-vendor I get:

===>   gitlab-semgrep-2.2.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gitlab-semgrep-2.2.0 for building
===>  Extracting for gitlab-semgrep-2.2.0
=> SHA256 Checksum OK for gitlab-org/security-products/analyzers-semgrep-70e54468c00aa2fa358dc7c13d034aae325d351e_GL0.tar.gz.
===>  Patching for gitlab-semgrep-2.2.0
GH_TUPLE=       \
                cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \
                golang:sys:288bc346aa39:golang_sys/vendor/golang.org/x/sys \
                pelletier:go-toml:v1.8.1:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
                russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
                shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
                sirupsen:logrus:v1.8.1:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
                urfave:cli:v2.3.0:urfave_cli_v2/vendor/github.com/urfave/cli/v2

                # Errors found during processing:
                #       error getting commit v1.0.0 for gitlab-org/security-products: not found
                #       error getting commit v2.23.0 for gitlab-org/security-products: not found
                #       error getting commit v2.1.0 for gitlab-org/security-products: not found
                #       error getting commit v1.1.0 for gitlab-org/security-products: not found

If I build it manually with go build I get:

╰─ go build
go: downloading github.com/urfave/cli/v2 v2.3.0
go: downloading gitlab.com/gitlab-org/security-products/analyzers/ruleset v1.0.0
go: downloading gitlab.com/gitlab-org/security-products/analyzers/report/v2 v2.1.0
go: downloading gitlab.com/gitlab-org/security-products/analyzers/common/v2 v2.23.0
go: downloading gitlab.com/gitlab-org/security-products/analyzers/command v1.1.0
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/pelletier/go-toml v1.8.1
go: downloading golang.org/x/sys v0.0.0-20200915084602-288bc346aa39
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0

So it seems that modules2tuples can maybe not handle the deeper nested dependency?

Any idea how to get this fixed?

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions