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

Added dependsOn to module and project config, switched apply to apply… #180

Merged
merged 2 commits into from Jun 24, 2020

Conversation

bmonkman
Copy link
Member

… as a graph traversal.

@@ -63,9 +53,33 @@ func (c *ZeroProjectConfig) Print() {
pp.Println(c)
}

func NewModule(parameters Parameters, directory string, repository string, source string) Module {
// GetDAG returns a graph of the module names used in this project config
func (c *ZeroProjectConfig) GetDAG() dag.AcyclicGraph {
Copy link
Contributor

Choose a reason for hiding this comment

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

using AcyclicGraph is slick 🕶️ 🕶️

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it was nice to be able to handle dependencies in what is probably going to end up being the necessary way, but also be able to do it quite easily!

Copy link
Contributor

@dtoki dtoki left a comment

Choose a reason for hiding this comment

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

👍🏽, LGTM

@bmonkman bmonkman merged commit 57334dc into master Jun 24, 2020
@bmonkman bmonkman deleted the process-modules-as-a-graph branch June 24, 2020 21:24
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.

None yet

3 participants