Module: Dependabot::GoModules::PathConverter
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/go_modules/path_converter.rb
Class Method Summary collapse
Class Method Details
.git_url_for_path(path) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dependabot/go_modules/path_converter.rb', line 19 def self.git_url_for_path(path) # Save a query by manually converting golang.org/x names import_path = path.gsub(%r{^golang\.org/x}, "github.com/golang") T.cast( SharedHelpers.run_helper_subprocess( command: NativeHelpers.helper_path, function: "getVcsRemoteForImport", args: { import: import_path } ), T.nilable(String) ) end |