-
Notifications
You must be signed in to change notification settings - Fork 231
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
Change BASE_REPO_URL to raw.githubusercontent.com #681
Conversation
Fixes Koenkk#673 By using raw.githubusercontent.com over github.com it is possible to access files over IPv6. This helps in environments where IPv4 is not available.
tests/data.test.ts
Outdated
@@ -41,7 +41,7 @@ export const IMAGE_V14_1_METAS = { | |||
fileVersion: 14, | |||
fileSize: 249694, | |||
originalUrl: undefined, | |||
url: `https://github.com/Koenkk/zigbee-OTA/raw/master/images/${IMAGES_TEST_DIR}/${IMAGE_V14_1}`, | |||
url: `https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/${IMAGES_TEST_DIR}/${IMAGE_V14_1}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should take the opportunity to replace all https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master
with ${BASE_REPO_URL}${REPO_BRANCH}
/ ${common.BASE_REPO_URL}${common.REPO_BRANCH}
(depending on imports) to avoid future needs for manual adjustments.
Actually, with this URL style, it might even be possible to just combine the two into BASE_REPO_URL
(base+branch I mean). Have to check occurrences of it, see if it works everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have adjusted the PR according to your request.
Note: run reprocess after this is merged to update all manifests automatically. |
2016ab9
to
807f8b7
Compare
Thanks! |
Fixes #673
By using raw.githubusercontent.com over github.com it is possible to access files over IPv6. This helps in environments where IPv4 is not available.