"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/providercache/dir.go" between
terraform-0.15.5.tar.gz and terraform-1.0.0.tar.gz

About: Terraform is a tool for building, changing, and versioning a datacenter infrastructure (written in Go).

dir.go  (terraform-0.15.5):dir.go  (terraform-1.0.0)
skipping to change at line 61 skipping to change at line 61
baseDir: baseDir, baseDir: baseDir,
targetPlatform: getproviders.CurrentPlatform, targetPlatform: getproviders.CurrentPlatform,
} }
} }
// NewDirWithPlatform is a variant of NewDir that allows selecting a specific // NewDirWithPlatform is a variant of NewDir that allows selecting a specific
// target platform, rather than taking the current one where this code is // target platform, rather than taking the current one where this code is
// running. // running.
// //
// This is primarily intended for portable unit testing and not particularly // This is primarily intended for portable unit testing and not particularly
// useful in "real" callers, with the exception of terraform-bundle. // useful in "real" callers.
func NewDirWithPlatform(baseDir string, platform getproviders.Platform) *Dir { func NewDirWithPlatform(baseDir string, platform getproviders.Platform) *Dir {
return &Dir{ return &Dir{
baseDir: baseDir, baseDir: baseDir,
targetPlatform: platform, targetPlatform: platform,
} }
} }
// BasePath returns the filesystem path of the base directory of this // BasePath returns the filesystem path of the base directory of this
// cache directory. // cache directory.
func (d *Dir) BasePath() string { func (d *Dir) BasePath() string {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)