Skip to content

Commit

Permalink
[#129]: fix: replace not working for the GitHub builder
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian authored Jan 15, 2024
2 parents 8314e04 + f7f0391 commit f0b99f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions github/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (p *processor) run() {
modInfo.PseudoVersion = velox.ParseModuleInfo(modInfo.ModuleName, at.Time, commits[0].GetSHA()[:12])

if v.pluginCfg.Replace != "" {
modInfo.Replace = v.pluginCfg.Replace
p.log.Debug("[REPLACE REQUESTED]", zap.String("plugin", v.name), zap.String("path", v.pluginCfg.Replace))
}

Expand Down
7 changes: 4 additions & 3 deletions github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
const (
rrOwner string = "roadrunner-server"
rrRepo string = "roadrunner"
zipExt string = ".zip"
)

/*
Expand Down Expand Up @@ -84,8 +85,8 @@ func (r *GHRepo) DownloadTemplate(tmp, version string) (string, error) { //nolin
name := path.Join(tmp, "roadrunner-server-"+version)
_ = os.RemoveAll(name)

r.log.Debug("[FLUSHING DATA ON THE DISK]", zap.String("path", name+".zip"))
f, err := os.Create(name + ".zip")
r.log.Debug("[FLUSHING DATA ON THE DISK]", zap.String("path", name+zipExt))
f, err := os.Create(name + zipExt)
if err != nil {
return "", err
}
Expand All @@ -101,7 +102,7 @@ func (r *GHRepo) DownloadTemplate(tmp, version string) (string, error) { //nolin

r.log.Debug("[SAVED]", zap.Int("bytes written", n))

rc, err := zip.OpenReader(name + ".zip")
rc, err := zip.OpenReader(name + zipExt)
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion velox_rr_v2023.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build_args = [
]

[roadrunner]
ref = "v2023.3.8"
ref = "v2023.3.9"

[github]
[github.token]
Expand Down

0 comments on commit f0b99f6

Please sign in to comment.