balena-io-library/armv7hf-debian-qemu

cross-build-start / cross-build-end doesn't match if full path is used

zrzka opened this issue · 0 comments

zrzka commented

Description

See this Front message for more details.

TL;DR;

User has RUN [ "/usr/bin/cross-build-end" ] in the Dockerfile (and same for -start). When the full path was removed (RUN [ "cross-build-end" ]), issue was fixed.

Test case

package main
import (
	"fmt"
	"os"
)

func main() {
  fmt.Println(os.Args[0])
}

Built, moved to ~/bin.

 ~ zrzka
zrzka
 ~ ~/bin/zrzka 
/Users/robertvojta/bin/zrzka
 ~ 

It's caused by this and this case statement.

Front logo Front conversations