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

cannot remove '../docs/generated/ingestion' #11310

Open
jmlane8 opened this issue Sep 5, 2024 · 0 comments
Open

cannot remove '../docs/generated/ingestion' #11310

jmlane8 opened this issue Sep 5, 2024 · 0 comments
Labels
bug Bug report

Comments

@jmlane8
Copy link

jmlane8 commented Sep 5, 2024

Describe the bug
When I run the gradlew build for datahub at the top directory, there is an error in the metadata-ingestion section. In metadata-ingestion:docGen, doc_gen.sh is called.
doc_gen.sh contains this code:
DATAHUB_ROOT=..
DOCS_OUT_DIR=$DATAHUB_ROOT/docs/generated/ingestion
EXTRA_DOC_DIR=$DATAHUB_ROOT/metadata-ingestion/docs/sources

rm -r $DOCS_OUT_DIR ||

I get this error:
rm: cannot remove '../docs/generated/ingestion': No such file or directory

It looks like the path should be docs/generated/ingestion, rather than starting with the parent folder.

To Reproduce
Steps to reproduce the behavior:

  1. Build AlmaLinux Container with OpenJDK17
  2. Clone Datahub project in container, master branch
  3. Navigate to top folder
  4. Execute "./gradlew build"

Expected behavior
I expected the gradle build to complete successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: AlmaLinux container on MacOS with M1 chip
  • Browser N/A
  • Version: master branch

Additional context
There is a note that says:
Note: this assumes that datahub has already been built with './gradlew build'
Should doc_gen.sh be adjusted for the first gradle build?

@jmlane8 jmlane8 added the bug Bug report label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

1 participant