Skip to content

fluffy-bunny/genny-github-actions-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genny-github-actions-issue (Works on my machine)

issue

I am on windows 10 latest

vscode

The following works fine.

go mod download
go test ./...
go get github.com/cheekybits/genny
genny -in ./internal/genny/sarulabsdi/interface-types.go -out ./pkg/interface-types.go -pkg pkg gen "InterfaceType=IHello"
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny

package pkg

import (
    "reflect"

    di "github.com/fluffy-bunny/sarulabsdi"
)

// ReflectTypeIHello used when your service claims to implement IHello
var ReflectTypeIHello = di.GetInterfaceReflectType((*IHello)(nil))

// AddIHelloByObj adds a prebuilt obj
func AddIHelloByObj(builder *di.Builder, obj interface{}) {
    di.AddSingletonWithImplementedTypesByObj(builder, obj, ReflectTypeIHello)
}

// AddSingletonIHello adds a type that implements IHello
func AddSingletonIHello(builder *di.Builder, implType reflect.Type) {
    di.AddSingletonWithImplementedTypes(builder, implType, ReflectTypeIHello)
}

Github actions issue

When I run the same command on github it produces the following output.

Where did the following go?

di "github.com/fluffy-bunny/sarulabsdi"
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny

package pkg

import "reflect"

// ReflectTypeIHello used when your service claims to implement IHello
var ReflectTypeIHello = di.GetInterfaceReflectType((*IHello)(nil))

// AddIHelloByObj adds a prebuilt obj
func AddIHelloByObj(builder *di.Builder, obj interface{}) {
    di.AddSingletonWithImplementedTypesByObj(builder, obj, ReflectTypeIHello)
}

// AddSingletonIHello adds a type that implements IHello
func AddSingletonIHello(builder *di.Builder, implType reflect.Type) {
    di.AddSingletonWithImplementedTypes(builder, implType, ReflectTypeIHello)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages