Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please upgrade parse-url to 3.x.x version #15

Closed
frankLife opened this issue Oct 23, 2018 · 9 comments · Fixed by #16
Closed

please upgrade parse-url to 3.x.x version #15

frankLife opened this issue Oct 23, 2018 · 9 comments · Fixed by #16

Comments

@frankLife
Copy link

frankLife commented Oct 23, 2018

git@gitlab.xxx.com:9radio/dmax.git doesn't work correctly with parse-url of 1.x.x version

@frankLife
Copy link
Author

@IonicaBizau

@frankLife
Copy link
Author

It seems upgrade can't fix this question . It also has a : colon in full_name field

@IonicaBizau
Copy link
Owner

Can you add examples?

@frankLife
Copy link
Author

frankLife commented Oct 23, 2018

{ protocols: [],
  protocol: 'ssh',
  port: 9,
  resource: 'gitlab.xxx.com',
  user: 'git',
  pathname: '/dmax.git',
  hash: '',
  search: '',
  href: 'git@gitlab.xxx.com:9radio/dmax.git',
  token: '',
  toString: [Function],
  source: 'xxx.com',
  git_suffix: true,
  name: 'dmax',
  owner: 'git',
  ref: '',
  filepathtype: '',
  filepath: '',
  organization: 'git',
  full_name: 'git/dmax' }

by

const GitUrlParse = require("git-url-parse");
console.log(GitUrlParse('git@gitlab.xxx.com:9radio/dmax.git'))

with git-url-parse@10.1.0

It looks that full_name and owner are wrong

@frankLife
Copy link
Author

@IonicaBizau please fix this, our system deeply depends on this great module.

@frankLife
Copy link
Author

frankLife commented Oct 23, 2018

When I upgrade the git-url-parse after this issue was closed, I get the result:

{ protocols: [ 'http' ],
  protocol: 'ssh',
  port: null,
  resource: 'xxx',
  user: 'git',
  pathname: '/:9radio/dmax.git',
  hash: '',
  search: '',
  href: 'http://git@xxx/:9radio/dmax.git',
  query: {},
  token: '',
  toString: [Function],
  source: 'xxx',
  git_suffix: true,
  name: 'dmax',
  owner: ':9radio',
  commit: undefined,
  ref: '',
  filepathtype: '',
  filepath: '',
  organization: ':9radio',
  full_name: ':9radio/dmax' }

It looks the colon : in full_name and owner field are wrong

@IonicaBizau

@IonicaBizau IonicaBizau reopened this Oct 23, 2018
@AMDvsTMD
Copy link

don't update when update it is wrong

@AMDvsTMD
Copy link

When I upgrade the git-url-parse after this issue was closed, I get the result:

{ protocols: [ 'http' ],
  protocol: 'ssh',
  port: null,
  resource: 'xxx',
  user: 'git',
  pathname: '/:9radio/dmax.git',
  hash: '',
  search: '',
  href: 'http://git@xxx/:9radio/dmax.git',
  query: {},
  token: '',
  toString: [Function],
  source: 'xxx',
  git_suffix: true,
  name: 'dmax',
  owner: ':9radio',
  commit: undefined,
  ref: '',
  filepathtype: '',
  filepath: '',
  organization: ':9radio',
  full_name: ':9radio/dmax' }

It looks the colon : in full_name and owner field are wrong

@IonicaBizau

you should test right then push otherwise will affect others

@IonicaBizau
Copy link
Owner

@AMDvsTMD Indeed! But in this case, the tests were wrong and failing silently 🙈 Should be fine now! 🚀

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 a pull request may close this issue.

3 participants