Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-X flag requires argument of the form importpath.name=value #270

Open
Dmitry052 opened this issue Oct 11, 2024 · 0 comments
Open

-X flag requires argument of the form importpath.name=value #270

Dmitry052 opened this issue Oct 11, 2024 · 0 comments

Comments

@Dmitry052
Copy link

Dmitry052 commented Oct 11, 2024

I want to build an application for x64 with environment variables but I get an error
/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_arm64/link: -X flag requires argument of the form importpath.name=value

To Reproduce:

Steps to reproduce the behaviour:

  1. GOFLAGS="-ldflags=-X -ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
  2. When run
    GOFLAGS="-ldflags=-X=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
    or
    GOFLAGS="-ldflags=-X-ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
    the application builds but the variables are not linked in main.go
  3. when i build the app for mac/windows on arm such a problem does not arise, envs are linked
Device info
  • OS: MacOS
  • Version: Version 14.6.1 (23G93)
  • Go version: go version go1.23.2 darwin/arm64
  • fyne-cross version: fyne-cross version v1.5.0
  • Fyne version: fyne cli version: v2.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant