Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

implement first pass at update #3

Merged
merged 8 commits into from
May 25, 2017
Merged

Conversation

whyrusleeping
Copy link
Contributor

This is a very early pass at automating the workflow of updating and bubbling up dependencies of a given package.

Usage:

  1. in the directory of the root package you want to update the dep tree of, run gx-workspace update start PACKAGE
  • Where PACKAGE is the name of the package you want to update
  1. run gx-workspace update next, it will update deps the first package in the todo list
  2. Check the package to make sure it looks right, run tests, etc
  3. run gx-workspace update next again, it will publish said package to ipfs and update the work state
  4. repeat steps 2-4 until done

Notes:

  • it only currently supports updating one 'base' package at a time, you can work around this by manually editing the gx-workspace-update.json file. This should get improved soon.
  • It only works for go packages currently, will make it more general later
  • It should respect your $GOPATH (if it doesnt, theres a bug)
    • this means you can set your gopath to a separate dir to cleanly sandbox things

@whyrusleeping whyrusleeping requested a review from a user February 3, 2017 04:50
@ghost ghost force-pushed the feat/workspace-update branch from c7e8f7d to fa24693 Compare May 24, 2017 22:39
@ghost ghost force-pushed the feat/workspace-update branch from fa24693 to 8b34d1d Compare May 24, 2017 22:42
@ghost
Copy link

ghost commented May 24, 2017

Okay this is ready to go for now, since the basic operational method works.

What's next:

  • Make git branch configurable and generate PRs (using hub?)
  • Make the git-clone step part of the update preparation, instead of cloning within every package step
  • Make the output nicer: be less verbose by default, and print every executed command's output in verbose mode
  • Devide steps and phases better (--porcelain?)
  • Have a meta command that does the whole process automatically

@ghost ghost force-pushed the feat/workspace-update branch from 7b519b0 to 7bb822f Compare May 25, 2017 19:11
@whyrusleeping whyrusleeping merged commit 2f510d5 into master May 25, 2017
@whyrusleeping whyrusleeping deleted the feat/workspace-update branch May 25, 2017 21:22
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.

1 participant