Skip to content

Conversation

erizocosmico
Copy link
Contributor

Fixes #123

Requires src-d/go-parse-utils#8

.travis.yml Outdated

env:
- DBNAME=kallax_test DBUSER=postgres DBPASS=''
- GOPATH=$GOPATH:/tmp/whatever
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invert order.

path = filepath.ToSlash(path)
return strings.Replace(path, importPath, "", -1)
for _, p := range parseutil.DefaultGoPath {
p = filepath.ToSlash(p + "/src/")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Join?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Join will strip the last "/", which we want to replace later.

@erizocosmico
Copy link
Contributor Author

Amended with the change, @Serabe

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@erizocosmico erizocosmico merged commit 8537f80 into src-d:master Apr 26, 2017
@erizocosmico erizocosmico deleted the fix/gopath branch April 26, 2017 15:00
@codecov
Copy link

codecov bot commented Apr 26, 2017

Codecov Report

Merging #138 into master will decrease coverage by 0.1%.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
- Coverage   80.39%   80.29%   -0.11%     
==========================================
  Files          15       15              
  Lines        2790     2796       +6     
==========================================
+ Hits         2243     2245       +2     
- Misses        375      378       +3     
- Partials      172      173       +1
Impacted Files Coverage Δ
generator/processor.go 88.5% <100%> (-0.65%) ⬇️
generator/template.go 92.39% <81.81%> (-0.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f10e8f...b0b0b26. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants