Skip to content

all: remove dep source for govalidator #1638

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

Merged
merged 1 commit into from
Aug 22, 2019
Merged

all: remove dep source for govalidator #1638

merged 1 commit into from
Aug 22, 2019

Conversation

leighmcculloch
Copy link
Member

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with name of package that is most changed in the PR, ex.
    services/friendbot

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated any docs (developer docs, .md
    files, etc... affected by this change). Take a look in the docs folder for a given service,
    like this one.

Release planning

  • I've updated the relevant CHANGELOG (here for Horizon) if
    needed with deprecations, added features, breaking changes, and DB schema changes.
  • I've decided if this PR requires a new major/minor version according to
    semver, or if it's mainly a patch change. The PR is targeted at the next
    release branch if it's not a patch change.

Summary

Remove the source parameter for the github.com/asaskevich/govalidator dependency in the dep Gopkg.* files.

Goal and scope

This change is being made to simplify the go.mod file that will be generated when we move to Modules (#1634).

The source parameter for the github.com/asaskevich/govalidator dependency is pointing to the same repository as the dependency name, just with a .git extension. GitHub treats the two repository URLs the same and it was probably an error that we set the source to that value. The presence of the source parameter causes go mod init when converting from go dep to go modules to think the source is pointing to a fork which adds an extra unnecessary replace directive to the the go.mod file that is generated.

This change is expected to be a no-op on existing functionality and on the dependencies that get pulled in during a build as it should cause no changes to the dependencies that dep pulls in.

Summary of changes

  • Replace the source parameter with a branch parameter. The branch parameter is required because either a source, revision, or branch parameter must be provided.

Known limitations & issues

N/A

What shouldn't be reviewed

N/A

Remove the `source` parameter for the github.com/asaskevich/govalidator
dependency.

The source parameter is pointing to the same repository, just with a
`.git` extension. GitHub treats the two repository URLs the same. The
presence of the source parameter causes `go mod init` to think the
`source` is pointing to a fork.
@leighmcculloch leighmcculloch requested a review from debnil August 22, 2019 22:10
@leighmcculloch leighmcculloch marked this pull request as ready for review August 22, 2019 22:12
Copy link
Contributor

@debnil debnil left a comment

Choose a reason for hiding this comment

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

LGTM!

@leighmcculloch leighmcculloch merged commit f65ea5f into stellar:master Aug 22, 2019
@leighmcculloch leighmcculloch deleted the issue_1634_dep_remove_unnecessary_source branch August 22, 2019 22:19
@leighmcculloch leighmcculloch self-assigned this Sep 16, 2019
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.

2 participants