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

dep: Fix error with scratch directory #2016

Merged
merged 1 commit into from
Aug 14, 2018
Merged

Conversation

ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented Aug 14, 2018

If dep already sees its scratch directory (.vendor-new), dep ensure fails. This rm -rf's that directory so that make get_vendor_deps doesn't fail.


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

If dep already sees its scratch directory (.vendor-new), dep ensure fails. This rm -rf's that directory so make get_vendor_deps doesn't fail.
@codecov
Copy link

codecov bot commented Aug 14, 2018

Codecov Report

Merging #2016 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2016   +/-   ##
========================================
  Coverage    64.86%   64.86%           
========================================
  Files          115      115           
  Lines         6862     6862           
========================================
  Hits          4451     4451           
  Misses        2127     2127           
  Partials       284      284

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

LGTM. Did we ever have a clean target that removed the entire vendor directory?

@ValarDragon
Copy link
Contributor Author

ValarDragon commented Aug 14, 2018

We used to nuke the vendor directory. I had removed that since we started enforcing no branches being allowed in the toml. (Enforced in linting) This avoided us getting weird things with the vendor directory being out of sync. I don't think there is actually need to rm -rf the vendor directory anymore, it seems like dep handles it. This has the added advantage that you don't have to update all dependencies every time, dep more intelligently only updates the ones which had a diff in the lock.

I think a clean command would be cool, for deleting all of ~/.gaiad, ~/.gaiacli, vendor, mylocalnet, build, for use only within development environments.

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

utACK, agreed on introducing make clean

@cwgoes cwgoes merged commit 9997ea2 into develop Aug 14, 2018
@cwgoes cwgoes deleted the dev/fix_get_vendor_dep_error branch August 14, 2018 08:35
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.

4 participants