nikhilbadyal / docker-py-revanced

One Click Python util to build all Revanced apps.
https://nikhilbadyal.github.io/docker-py-revanced/
GNU General Public License v3.0
568 stars 439 forks source link

"GITHUB_REPOSITORY" not set #511

Closed TechMorgan closed 6 months ago

TechMorgan commented 6 months ago

Request guidelines

Name

Youtube

Error log or link to the logs if using Github Action

Traceback (most recent call last): File "C:\Users\Deepak\Desktop\docker-py-revanced-main\main.py", line 63, in main() File "C:\Users\Deepak\Desktop\docker-py-revanced-main\main.py", line 34, in main updates_info = load_older_updates(env) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\Desktop\docker-py-revanced-main\src\utils.py", line 252, in load_older_updates github_repository=env.str("GITHUB_REPOSITORY"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\Desktop\docker-py-revanced-main\venv\Lib\site-packages\environs__init__.py", line 116, in method raise EnvError( environs.EnvError: Environment variable "GITHUB_REPOSITORY" not set

ENVS

#Global:
EXTRA_FILES=https://github.com/ReVanced/GmsCore/releases/latest@Revanced-Microg.apk
PATCH_APPS=youtube
GLOBAL_CLI_DL=https://github.com/revanced/revanced-cli/releases/latest-prerelease
GLOBAL_PATCHES_DL=https://github.com/revanced/revanced-patches/releases/latest-prerelease
GLOBAL_INTEGRATIONS_DL=https://github.com/revanced/revanced-integrations/releases/latest-prerelease

#YouTube:
YOUTUBE_PATCHES_DL=https://github.com/rufusin/revanced-patches/releases/latest-prerelease
YOUTUBE_INTEGRATIONS_DL=https://github.com/rufusin/revanced-integrations/releases/latest-prerelease
YOUTUBE_EXCLUDE_PATCH=custom-branding-icon-youtube,custom-branding-name-youtube,enable-debug-logging,hide-fullscreen-button,shorts-overlay-buttons,hide-shorts-components

Additional info

No response

nikhilbadyal commented 6 months ago

Are you building locally ?. If yes there is no way to automatically know the GitHub Repository where builder is located. You can put GITHUB_REPOSITORY manually in .env file.

TechMorgan commented 6 months ago

GITHUB_REPOSITORY=https://github.com/nikhilbadyal/docker-py-revanced Like this?

nikhilbadyal commented 6 months ago

GITHUB_REPOSITORY=nikhilbadyal/docker-py-revanced

This should do the job. But why are you running the auto builder.

You can just use python main.py

TechMorgan commented 6 months ago

GITHUB_REPOSITORY=nikhilbadyal/docker-py-revanced

This should do the job. But why are you running the auto builder.

You can just use python main.py

Yeah i do use python main.py

TechMorgan commented 6 months ago

I'm rate-limited now

GITHUB_REPOSITORY=nikhilbadyal/docker-py-revanced This should do the job. But why are you running the auto builder. You can just use python main.py

Yeah i do use python main.py

nikhilbadyal commented 6 months ago

I'm rate-limited now

You can provide GitHub token. See here

nikhilbadyal commented 6 months ago

/cib

nikhilbadyal commented 6 months ago

I have also added a fix in the attached PR. From now on the builder will not fail even when env is not set.