Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Apr 23, 2024
1 parent 601a8ab commit 35c831a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions backend/go/godeps/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ func generate() []RenderUnit {
libPkg := libTarget(pkgs, pkg).Package
pkgCfg := Config.GetPkgCfg(pkg.ImportPath)

if strings.Contains(pkg.ImportPath, "notifications-delivery/cmd") {
fmt.Println("#############", pkg.ImportPath, pkg.Name, pkg.IsPartOfTree)
}

var lib *Lib
if pkg.IsPartOfTree {
if len(pkg.GoFiles) > 0 || len(pkg.SFiles) > 0 {
Expand All @@ -231,6 +235,10 @@ func generate() []RenderUnit {
lib.Libs = append(lib.Libs, t.Full())
}

if strings.Contains(pkg.ImportPath, "notifications-delivery/cmd") {
fmt.Println("#############", "HAS LIB", lib)
}

units = append(units, RenderUnit{
Render: func(w io.Writer) {
RenderLib(w, lib)
Expand Down Expand Up @@ -295,7 +303,15 @@ func generate() []RenderUnit {
}

if lib != nil && pkg.Name == "main" {
if strings.Contains(pkg.ImportPath, "notifications-delivery/cmd") {
fmt.Println("#############", "ITS A MAIN")
}

for _, variant := range pkgCfg.UniqueLinkVariants(pkg.Variant) {
if strings.Contains(pkg.ImportPath, "notifications-delivery/cmd") {
fmt.Println("#############", variant.Name, variant.OS, variant.ARCH)
}

bin := &Bin{
TargetName: targetName("go_bin#build", variant),
TargetPackage: lib.Target.Package,
Expand Down

0 comments on commit 35c831a

Please sign in to comment.