From 9768b956166795308b87352cb5e916b924bd0617 Mon Sep 17 00:00:00 2001 From: a Date: Mon, 1 Aug 2022 20:01:59 +0200 Subject: [PATCH] Revert "gogio: refuse compilation with additional arguments" Build arguments are passed to the program, which is useful for platforms where there is no other way to pas them (Android, iOS). Signed-off-by: Elias Naur --- gogio/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/gogio/main.go b/gogio/main.go index b52c294..38018f7 100644 --- a/gogio/main.go +++ b/gogio/main.go @@ -65,9 +65,6 @@ func flagValidate() error { if pkgPathArg == "" { return errors.New("specify a package") } - if len(flag.Args()) > 1 { - return fmt.Errorf("build arguments must be specified before the package (%q)", pkgPathArg) - } if *target == "" { return errors.New("please specify -target") }