@@ -29,8 +29,8 @@ import (
2929 "github.com/pkg/errors"
3030)
3131
32- // BuildOptionsManager fixdoc
33- type BuildOptionsManager struct {
32+ // BuildOptions fixdoc
33+ type BuildOptions struct {
3434 currentOptions * properties.Map
3535 currentBuildOptionsJSON []byte
3636
@@ -57,7 +57,7 @@ func NewBuildOptionsManager(
5757 clean bool ,
5858 compilerOptimizationFlags string ,
5959 runtimePlatformPath , buildCorePath * paths.Path ,
60- ) * BuildOptionsManager {
60+ ) * BuildOptions {
6161 opts := properties .NewMap ()
6262
6363 opts .Set ("hardwareFolders" , strings .Join (hardwareDirs .AsStrings (), "," ))
@@ -83,7 +83,7 @@ func NewBuildOptionsManager(
8383 }
8484 opts .Set ("additionalFiles" , strings .Join (additionalFilesRelative , "," ))
8585
86- return & BuildOptionsManager {
86+ return & BuildOptions {
8787 currentOptions : opts ,
8888 hardwareDirs : hardwareDirs ,
8989 builtInToolsDirs : builtInToolsDirs ,
@@ -100,7 +100,7 @@ func NewBuildOptionsManager(
100100}
101101
102102// WipeBuildPath fixdoc
103- func (m * BuildOptionsManager ) WipeBuildPath (logger * logger.BuilderLogger ) error {
103+ func (m * BuildOptions ) WipeBuildPath (logger * logger.BuilderLogger ) error {
104104 buildOptionsJSON , err := json .MarshalIndent (m .currentOptions , "" , " " )
105105 if err != nil {
106106 return errors .WithStack (err )
@@ -113,7 +113,7 @@ func (m *BuildOptionsManager) WipeBuildPath(logger *logger.BuilderLogger) error
113113 return m .buildPath .Join ("build.options.json" ).WriteFile (buildOptionsJSON )
114114}
115115
116- func (m * BuildOptionsManager ) wipeBuildPath (logger * logger.BuilderLogger ) error {
116+ func (m * BuildOptions ) wipeBuildPath (logger * logger.BuilderLogger ) error {
117117 wipe := func () error {
118118 // FIXME: this should go outside legacy and behind a `logrus` call so users can
119119 // control when this should be printed.
0 commit comments