Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Move LockDiff from dep into gps #213

Merged
merged 5 commits into from
Apr 14, 2017
Merged

Move LockDiff from dep into gps #213

merged 5 commits into from
Apr 14, 2017

Conversation

carolynvs
Copy link
Contributor

  • Move LockDiff and related structs.
  • Expose gps.DiffLocks(l1, l2) and gps.DiffProjects(p1, p2).
  • All the TOML related annotation will remain in dep, using the same rawX pattern that locks use.

version.go Outdated
@@ -810,3 +810,23 @@ func hidePair(pvl []PairedVersion) []Version {
}
return vl
}

// Decompose a Version into the underlying number, branch and revision

Choose a reason for hiding this comment

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

comment on exported function GetVersionInfo should be of the form "GetVersionInfo ..."

Copy link
Owner

Choose a reason for hiding this comment

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

Let's rename this to something a little more descriptive, if we're gonna export it - Info is pretty bland 😄

how about VersionComponentStrings()?

@codecov
Copy link

codecov bot commented Apr 11, 2017

Codecov Report

Merging #213 into master will increase coverage by 0.26%.
The diff coverage is 87.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   78.35%   78.62%   +0.26%     
==========================================
  Files          28       29       +1     
  Lines        4020     4169     +149     
==========================================
+ Hits         3150     3278     +128     
- Misses        648      663      +15     
- Partials      222      228       +6
Impacted Files Coverage Δ
version.go 79.06% <84.61%> (+1.13%) ⬆️
lockdiff.go 88.23% <88.23%> (ø)
pkgtree/pkgtree.go 81.4% <0%> (-3.67%) ⬇️
source_manager.go 90.35% <0%> (ø) ⬆️
bridge.go 75.91% <0%> (ø) ⬆️
lock.go 95.45% <0%> (+6.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9659997...990d452. Read the comment docs.

Copy link
Owner

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

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

just little things

l1 = &SimpleLock{}
}
if l2 == nil {
l2 = &SimpleLock{}
Copy link
Owner

Choose a reason for hiding this comment

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

Let's get some simple coverage for the zero value case

version.go Outdated
@@ -810,3 +810,23 @@ func hidePair(pvl []PairedVersion) []Version {
}
return vl
}

// Decompose a Version into the underlying number, branch and revision
Copy link
Owner

Choose a reason for hiding this comment

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

Let's rename this to something a little more descriptive, if we're gonna export it - Info is pretty bland 😄

how about VersionComponentStrings()?

@carolynvs
Copy link
Contributor Author

I've renamed it per your suggestion and added tests for nil/empty locks.

@sdboyer
Copy link
Owner

sdboyer commented Apr 14, 2017

Great - in we go! Thanks! 🎉

@sdboyer sdboyer merged commit df000f6 into sdboyer:master Apr 14, 2017
@carolynvs
Copy link
Contributor Author

In before reorg! 😁

@carolynvs carolynvs deleted the lockdiff branch April 14, 2017 01:07
@sdboyer
Copy link
Owner

sdboyer commented Apr 14, 2017

🏁 🏁 🏁

krisnova pushed a commit to krisnova/dep that referenced this pull request Apr 21, 2017
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.

3 participants