GithubHelp home page GithubHelp logo

Comments (6)

jessequinn avatar jessequinn commented on August 16, 2024 1

the following appears to work on gitlab 14.10

code_navigation:
  stage: test
  image: sourcegraph/lsif-go:v1.2
  allow_failure: true
  script:
    - apt-get update && apt-get -yy install libicu-dev
    - lsif-go -o dump.lsif
  artifacts:
    reports:
      lsif: dump.lsif

from lsif-go.

deepseawhale avatar deepseawhale commented on August 16, 2024

Got the same issue....

from lsif-go.

tjdevries avatar tjdevries commented on August 16, 2024

Hi! Thanks for reporting!

I will be looking into this (but I won't be in office for the next few days, so most of the investigation will come next week).

Could you tell me what the output of this command is in the repository that you're running this in?

go list -mod=readonly -m

Also, if I created a PR with some additional debugging information, would it be possible to check out the branch, build lsif-go and then run that against your project? That might make debugging it a lot easier.

Thanks!

TJ

from lsif-go.

violetaria avatar violetaria commented on August 16, 2024

I'm seeing this for a public project/repository but not sure what's causing the issue.

from lsif-go.

jessequinn avatar jessequinn commented on August 16, 2024

private gitlab pipeline with code_navigation is also doing it:

code_navigation:
  stage: test
  image: sourcegraph/lsif-go:v1
  allow_failure: true # recommended
  script:
    - lsif-go
  artifacts:
    reports:
      lsif: dump.lsif

error in pipeline

error: failed to infer module name: unrecognized import path "xxx.xxx.xxx.xxx/.../.../cis-filter-deployer"
Make sure your git repo has a remote (git remote add origin [email protected]:owner/repo)
go list -mod=readonly -m

cis-filter-deployer

from lsif-go.

yerden avatar yerden commented on August 16, 2024

I can confirm the issue running in gitlab runner in a private repo.

# lsif-go -o dump.lsif
✔ Resolving module name... Done

error: failed to infer module name: unrecognized import path "xxxx.xxx.xxx/path/project"

Make sure your git repo has a remote (git remote add origin [email protected]:owner/repo)

UPD: fixed that by appending our self-signed certificate to /etc/ssl/certs/ca-certificates.crt (running Rocky Linux 8, btw).

from lsif-go.

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.