~humaid/workflow-engine unlisted

7aeb4635c87aaacae005db9c51ec09da33038397 — Humaid AlQassimi 10 months ago e5bec34
Fix loading files
3 files changed, 4 insertions(+), 4 deletions(-)

M main.go
M public/bindata.go
M templates/bindata.go
M main.go => main.go +2 -2
@@ 52,7 52,7 @@ func NewEngine(opt EngineOpts) (e *Engine, err error) {
		nameSep := strings.Split(d.Name(), "/")
		fileName := nameSep[len(nameSep)-1]
		if strings.HasPrefix(strings.ToLower(fileName), "service") {
			file, err := ioutil.ReadFile(d.Name())
			file, err := ioutil.ReadFile(opt.WorkflowDirPath + "/" + d.Name())
			if err != nil {
				return nil, fmt.Errorf("open file (%s): %v", d.Name(), err)
			}


@@ 67,7 67,7 @@ func NewEngine(opt EngineOpts) (e *Engine, err error) {
			config.FileName = fileName
			services = append(services, config)
		} else {
			file, err := ioutil.ReadFile(d.Name())
			file, err := ioutil.ReadFile(opt.WorkflowDirPath + "/" + d.Name())
			if err != nil {
				return nil, fmt.Errorf("open file (%s): %v", d.Name(), err)
			}

M public/bindata.go => public/bindata.go +1 -1
@@ 96,7 96,7 @@ func bindataGo() (*asset, error) {
		return nil, err
	}

	info := bindataFileInfo{name: "bindata.go", size: 0, mode: os.FileMode(420), modTime: time.Unix(1591560382, 0)}
	info := bindataFileInfo{name: "bindata.go", size: 0, mode: os.FileMode(420), modTime: time.Unix(1591561809, 0)}
	a := &asset{bytes: bytes, info: info}
	return a, nil
}

M templates/bindata.go => templates/bindata.go +1 -1
@@ 151,7 151,7 @@ func bindataGo() (*asset, error) {
		return nil, err
	}

	info := bindataFileInfo{name: "bindata.go", size: 8192, mode: os.FileMode(420), modTime: time.Unix(1591560382, 0)}
	info := bindataFileInfo{name: "bindata.go", size: 8192, mode: os.FileMode(420), modTime: time.Unix(1591561809, 0)}
	a := &asset{bytes: bytes, info: info}
	return a, nil
}