Fork of github.com/terraform/hashicorp/internal/dag. Directed acyclic graph (DAG) implementation in Go.
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.
Below is a list of changes we made to the upstream package:
- replace the use of
tfdiags
witherror
- remove logging
go get github.com/sourcegraph/tf-dag