-
Notifications
You must be signed in to change notification settings - Fork 401
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
0.15.3 has breaking issues error resolving image references: build: go build: exit status 2: flag provided but not defined: -platform #1317
Comments
@nmittler possibly related to some of your recent go flag changes? Can you take a look? |
To repro use the env-var
|
Yeah git bisect shows
|
hmm ... possibly #1314? In |
Actually .. is |
Yeah
…On Fri, May 17, 2024 at 12:35 Nathan Mittler ***@***.***> wrote:
Actually .. is KO_FLAGS even an environment variable that ko previously
supported?
—
Reply to this email directly, view it on GitHub
<#1317 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAERARZTMI2XEFRBA3SBRDZCYWWDAVCNFSM6AAAAABH4IRAQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJXHE3DSNRVGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unfortunately, I'm definitely not a viper expert :). I'm guessing that |
Actually sorry I made a mistake - |
I guess when you added that GetStringSlice it prepends |
maybe you should rename the flag? eg. |
@dprotaso yeah, that's was my thought as well. Will send a PR shortly. |
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with viper's autogenerated `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation - Adds an integration test for the `KO_FLAGS` issue. - Removes a few missed references to `vendor` in scripts. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with viper's autogenerated `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation - Adds an integration test for the `KO_FLAGS` issue. - Removes a few missed references to `vendor` in scripts. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with viper's autogenerated `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation - Adds an integration test for the `KO_FLAGS` issue. - Removes a few missed references to `vendor` in scripts. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with viper's autogenerated `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation - Adds an integration test for the `KO_FLAGS` issue. - Removes a few missed references to `vendor` in scripts. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with knative's `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation - Removes a few missed references to `vendor` in scripts. Fixes ko-build#1317
This is a hack to avoid a collision with knative's `KO_FLAGS` environment variable. Ko's recent addition of a global `flags` value results in viper reading this variable. This PR forces viper to rename the environment variable used for `flags` to be `KO_BUILD_FLAGS` instead. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with knative's `KO_FLAGS` environment variable (see ko-build#1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation Fixes ko-build#1317
This is a hack to avoid a collision with knative's `KO_FLAGS` environment variable. Ko's recent addition of a global `flags` value results in viper reading this variable. This PR forces viper to rename the environment variable used for `flags` to be `KO_BUILD_FLAGS` instead. Fixes ko-build#1317
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with knative's `KO_FLAGS` environment variable (see #1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation Fixes #1317
0.15.3 has breaking issues
https://github.com/knative/serving/actions/runs/9127229170/job/25097079749?pr=15219
The text was updated successfully, but these errors were encountered: