mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
04be220f5f
helper/copy CopyDir was used heavily in tests. It differes from internal/copydir in a few ways, the main one being that it creates the dst directory while the internal version expected the dst to exist (there are other differences, which is why I did not just switch tests to using internal's CopyDir). I moved the CopyDir func from helper/copy into command_test.go; I could also have moved it into internal/copy and named it something like CreateDirAndCopy so if that seems like a better option please let me know. helper/copy/CopyFile was used in a couple of spots so I moved it into internal, at which point I thought it made more sense to rename the package copy (instead of copydir). There's also a `go mod tidy` included. |
||
---|---|---|
.. | ||
acctest | ||
experiment | ||
hashcode | ||
logging | ||
pathorcontents | ||
plugin | ||
resource | ||
schema | ||
slowmessage | ||
validation | ||
wrappedreadline | ||
wrappedstreams | ||
README.md |
Legacy Helper Libraries
The packages in this directory are all legacy code. Some of them are legacy because they are now maintained in the Terraform SDK, while others are just obsolete codepaths that we intend to migrate away from over time.
Avoid using functions from packages under helper/
in new projects.