Comments (6)
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.
Got the same issue....
from lsif-go.
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.
I'm seeing this for a public project/repository but not sure what's causing the issue.
from lsif-go.
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.
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)
- remote implementations are not linked for method calls
- Update changelog and cut new release HOT 1
- Why are some files missing from `package.Syntax`?
- Load one dependency at a time for implementations
- Indexing CGo? HOT 1
- `lsif-go --animation` hangs when listing dependencies on sourcegraph/sourcegraph HOT 3
- Removing CGO_ENABLED=0 causes a panic accessing ranges
- Removing CGO_ENABLED=0 causes a panic accessing documents
- ☂️ Support for generics HOT 2
- Minor typo HOT 1
- Investigate support for generics in Go 1.18 HOT 2
- Incorrect Go to Definition for "context" import
- Incorrect Go to Definition for io.Writer from sourcegraph fork HOT 1
- Incorrect navigation for typealias RHS if typealias shadows it HOT 1
- Can't find associated interface method in some cases
- Support private git repos
- Feature request: Support for other build systems HOT 3
- Repo using go.work and multiple modules errors out
- inferring module name fails when module name isn't the VCS name
- Add full support for latest version of Go (1.21)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsif-go.