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

Documentation Repo Start Has Repo Failures #16647

Open
tommyorndorff opened this issue Jan 27, 2023 · 5 comments
Open

Documentation Repo Start Has Repo Failures #16647

tommyorndorff opened this issue Jan 27, 2023 · 5 comments

Comments

@tommyorndorff
Copy link

Documentation Page

https://github.com/DataDog/documentation/blob/master/README.md

Issue Description

Following the directions in the README.md results in a go dependency fetch failure.

$ node --version
v19.4.0
$ go version
go version go1.19.5 darwin/arm64
$ hugo version
hugo v0.109.0+extended darwin/arm64 BuildDate=unknown
make start-no-pre-build
find: integrations_data/extracted/dd-source: No such file or directory
find: integrations_data/extracted/dd-source: No such file or directory
Running regular build....
node_modules/hugo-bin/vendor/hugo: Mach-O 64-bit executable x86_64
go: github.com/DataDog/websites-modules@v1.3.62: invalid version: git ls-remote -q origin in /var/folders/8f/0c6b6gp91nz4yzq3yf87m0_r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/0b9a4e0dd2e4df83417f70a1cae99fa23d3c746cb86e34d6288d618cd2cc3b6c: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/DataDog/websites-modules/' not found
hugo: collected modules in 889 ms
Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go: github.com/DataDog/websites-modules@v1.3.62: invalid version: git ls-remote -q origin in /var/folders/8f/0c6b6gp91nz4yzq3yf87m0_r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/0b9a4e0dd2e4df83417f70a1cae99fa23d3c746cb86e34d6288d618cd2cc3b6c: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/DataDog/websites-modules/' not found
 *errors.errorString
make[1]: *** [server] Error 255
make: *** [start-no-pre-build] Error 2

There are references to go packages github.com/DataDog/websites-modules in go.sum. Is this repo possibly private?

@hestonhoffman
Copy link
Contributor

Hi @tommyorndorff, thanks for the question. The websites-modules repo is indeed private and wasn't originally required to run the lightweight build. I've reached out to our tooling team to see if something has changed there.

@hestonhoffman
Copy link
Contributor

@tommyorndorff Have you configured a GitHub token in your Makefile.config? If so, try commenting that line out (in addition to any other keys you've added to that file (like the API/APP token). Also, make sure FULL_BUILD is set to false.

@tommyorndorff
Copy link
Author

Here's the full content in case I'm misreading your response:

$ cat Makefile.config
# Makefile.config
# Create a new file called Makefile.config using this file as a template for your local config

# GITHUB_TOKEN :=
DATADOG_API_KEY := false
DATADOG_APP_KEY := false
FULL_BUILD := false
CONFIGURATION_FILE := "./local/bin/py/build/configurations/pull_config_preview.yaml"
$
$ make start-no-pre-build
find: integrations_data/extracted/dd-source: No such file or directory
find: integrations_data/extracted/dd-source: No such file or directory
Running regular build....
node_modules/hugo-bin/vendor/hugo: Mach-O 64-bit executable x86_64
go: github.com/DataDog/websites-modules@v1.3.62: invalid version: git ls-remote -q origin in /var/folders/8f/0c6b6gp91nz4yzq3yf87m0_r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/0b9a4e0dd2e4df83417f70a1cae99fa23d3c746cb86e34d6288d618cd2cc3b6c: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/DataDog/websites-modules/' not found
hugo: collected modules in 1567 ms
Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go: github.com/DataDog/websites-modules@v1.3.62: invalid version: git ls-remote -q origin in /var/folders/8f/0c6b6gp91nz4yzq3yf87m0_r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/0b9a4e0dd2e4df83417f70a1cae99fa23d3c746cb86e34d6288d618cd2cc3b6c: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/DataDog/websites-modules/' not found
 *errors.errorString
make[1]: *** [server] Error 255
make: *** [start-no-pre-build] Error 2

@hestonhoffman
Copy link
Contributor

I was able to reproduce this and we're looking into it. I hope to have an answer for you soon. Sorry for the inconvenience!

@apigirl
Copy link
Contributor

apigirl commented Feb 3, 2023

hi @tommyorndorff - we've realized that this isn't working for you because of an access issue that we're not able to resolve right now. We're definitely going to update our readme to reflect this new state until we can get something else in place. Thanks so much for letting us know about this, we didn't realize that it was an issue.

In the meantime, were you trying to contribute something to a specific docs page? Right now, the best way seems to be using the github UI editor, but if it is something bigger than would make that reasonable, we'd be happy to jump in and help.

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

3 participants