Using repos with path set to go/foobar breaks direct linking
Created by: huasome
- Issue type: bug report
- Sourcegraph version: 2.7.6
- OS Version: Ubuntu 16.04
- Docker version:
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:17:20 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:15:30 2018
OS/Arch: linux/amd64
Experimental: false```
Steps to reproduce:
1. Setup a repo with the path set to `go/foobar`
2. Navigate to files under the repo works fine.
3. Going directly to url https://sourcegraph.example.com/go/foobar immediately throws a 500 error.
I believe there's a bad regex somewhere that translates /go/ to the code intelligence integration for golang.