Skip to content

Commit

Permalink
fix(builders): make relative paths for node and ruby builders
Browse files Browse the repository at this point in the history
  • Loading branch information
xizhao committed Mar 2, 2018
1 parent 2a8a6c6 commit dbd8516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions builders/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (builder *NodeJSBuilder) DiscoverModules(dir string) ([]config.ModuleConfig
}

nodejsLogger.Debugf("Found NodeJS package: %s (%s)", path, moduleName)
path, _ = filepath.Rel(dir, path)
moduleConfigs = append(moduleConfigs, config.ModuleConfig{
Name: moduleName,
Path: path,
Expand Down
1 change: 1 addition & 0 deletions builders/ruby.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func (builder *RubyBuilder) DiscoverModules(dir string) ([]config.ModuleConfig,
}
}
}
path, _ = filepath.Rel(dir, path)
moduleConfigs[i] = config.ModuleConfig{
Name: gemName,
Path: path,
Expand Down

0 comments on commit dbd8516

Please sign in to comment.