kong icon indicating copy to clipboard operation
kong copied to clipboard

bazel build fails due to an error fetching kong_admin_gui

Open theMiddleBlue opened this issue 1 year ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Kong version ($ kong version)

3.4.0.0

Current Behavior

during the bazel build I got this error:

ERROR: An error occurred during the fetch of repository 'kong_admin_gui':
   Traceback (most recent call last):
	File "/usr/local/src/kong/build/repositories.bzl", line 105, column 13, in _github_release_impl
		fail("Failed to download release (%s): %s, exit: %d" % (gh_token_set, ret.stderr, ret.return_code))
Error in fail: Failed to download release (GITHUB_TOKEN is not set, is this a private repo?): To get started with GitHub CLI, please run:  gh auth login
Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

theMiddleBlue avatar Sep 12 '23 13:09 theMiddleBlue

I think that you need a github token to access these repo, try to generate a token, then

export GITHUB_TOKEN=xxx
make build-venv

chronolaw avatar Sep 13 '23 03:09 chronolaw

Perhaps you could find something useful. https://github.com/Kong/kong/blob/master/DEVELOPER.md

chronolaw avatar Sep 14 '23 22:09 chronolaw

it seems the build now depends on the Github CLI to download dependencies, which is the one requiring the token. There is an open issue https://github.com/cli/cli/issues/2680 about allowing gh release download to work without one, but it's been open for a while. To allow for kong builds in CI/CD it would be great if the dependency on gh cli was removed and instead a script with curl etc. was used to download the various release sources.

woodensquares avatar Sep 15 '23 17:09 woodensquares

This issue is marked as stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Oct 05 '23 01:10 github-actions[bot]

it seems the build now depends on the Github CLI to download dependencies, which is the one requiring the token. There is an open issue cli/cli#2680 about allowing gh release download to work without one, but it's been open for a while. To allow for kong builds in CI/CD it would be great if the dependency on gh cli was removed and instead a script with curl etc. was used to download the various release sources.

Kong had said they were gonna update docs to mention the extra dependencies. Agree needing to setup a github token for the build is a bit annoying when you can't just clone down and execute ootb. Environment pre-prep needed atm.

EDIT - Ah they did update docs to note it. Good to see.

jeremyjpj0916 avatar Oct 25 '23 08:10 jeremyjpj0916

The documentation was updated, closing

hanshuebner avatar Jul 03 '24 08:07 hanshuebner