Skip to content

Fork of directed acyclic graph (DAG) implementation from hashicorp/terraform

License

Notifications You must be signed in to change notification settings

sourcegraph/tf-dag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf-dag

Fork of github.com/terraform/hashicorp/internal/dag. Directed acyclic graph (DAG) implementation in Go.

Why the fork?

The dag package from terraform/hashicorp is one of the most well maintained and tested DAG implementations in Go, and many projects depend on it. However, it was made internal. Additionally, upstream package contains a lot of extra dependencies where most projects do not need.

By forking it, we can import it as a standlone package and introduce custom changes to make it more generic.

Changes

Below is a list of changes we made to the upstream package:

  • replace the use of tfdiags with error
  • remove logging

Usage

go get github.com/sourcegraph/tf-dag