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

fix(go): Improve go-import content parsing #9022

Merged

Conversation

zharinov
Copy link
Collaborator

@zharinov zharinov commented Mar 7, 2021

Changes:

Given that we already assume github datasource in the conditional branch, let's rely on goImportUrl string instead of goModule argument.

Context:

Closes #7663
Example: https://github.com/renovate-testing/test-7663-gomod-deps-404/pulls

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • No new tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

const lookupName = split[1] + '/' + split[2];
const lookupName = parsedUrl.pathname
.replace(/\.git$/, '')
.replace(/\/$/, '')
Copy link
Member

Choose a reason for hiding this comment

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

Use trimTrailingSlash from url utils

@rarkins rarkins enabled auto-merge (squash) March 8, 2021 12:59
@rarkins rarkins merged commit ccdb09f into renovatebot:master Mar 8, 2021
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.77.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some go dependencies can't be resolved
4 participants