Skip to content

Commit

Permalink
TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Feb 28, 2022
1 parent 59ba853 commit 033af8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/shared/procBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func containsItemWithName(name string, items []*BuildItem) bool {
func (b *ProcBuilder) envsubst(y string, environ map[string]string) (string, error) {
return envsubst.Eval(y, func(name string) string {
env := environ[name]
// TODO: check if we should escape in general (what about \t ...?)
if strings.Contains(env, "\n") {
env = fmt.Sprintf("%q", env)
}
Expand Down
2 changes: 2 additions & 0 deletions server/store/datastore/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func (s storage) GetBuildCount() (int64, error) {
}

func (s storage) CreateBuild(build *model.Build, procList ...*model.Proc) error {
// TODO: Verify repoID exist ...

sess := s.engine.NewSession()
defer sess.Close()
if err := sess.Begin(); err != nil {
Expand Down

0 comments on commit 033af8b

Please # to comment.