Skip to content

Commit

Permalink
Fix IsLibrary and IsDevLib flags to not affect the Package name
Browse files Browse the repository at this point in the history
It is a problem with copier.CopyWithOption function with set IgnoreEmpty
option. In this scenario the function doesn't copy bool fields with
false value. So the default Package fields IsLibrary and IsDevLib were
changed to false, so it gets copy when it is set to true in Config.
  • Loading branch information
mikusaq committed Feb 3, 2025
1 parent f65cacb commit bcb27fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/bringauto_package/Package.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func (packg *Package) FillDefault(*bringauto_prerequisites.Args) error {
Name: defaultPackageNameConst,
VersionTag: defaultVersionTagConst,
IsDebug: false,
IsDevLib: true,
IsLibrary: true,
IsDevLib: false,
IsLibrary: false,
PlatformString: PlatformString{
Mode: ModeAuto,
},
Expand Down

0 comments on commit bcb27fb

Please sign in to comment.