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

Support environment-variable replacement for usernames in dependency URLs #8754

Merged
merged 1 commit into from Apr 4, 2024

Conversation

matgis
Copy link
Contributor

@matgis matgis commented Apr 3, 2024

The editor can now inject environment variables into both the username and password of library dependency URLs that use authentication.

@matgis matgis added bug Something is not working as expected editor Issues related to the Defold editor labels Apr 3, 2024
@matgis matgis self-assigned this Apr 3, 2024
password (str ":" password))
user-info-b64 (str->b64 user-info)
authorization (format "Basic %s" user-info-b64)]
{"Authorization" authorization}))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously only the password part of the URL supported environment variable replacement, but according to the docs we should also support it for the username: https://defold.com/manuals/libraries/#basic-access-authentication

@@ -957,7 +957,7 @@
num-strs)
first-col-width-fmt (str \% first-col-width \s)
rest-col-width-fmt (str \% rest-col-width \s)
fmt-col (fn [index num-str]
fmt-col (fn [^long index num-str]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated: Fixed boxed math warning.

@matgis matgis requested a review from vlaaad April 3, 2024 15:50
Copy link
Contributor

@vlaaad vlaaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@matgis matgis merged commit 0c5a22a into editor-dev Apr 4, 2024
6 checks passed
@matgis matgis deleted the DEFEDIT-dep-url-username-env-var branch April 4, 2024 14:14
@britzl britzl changed the title Editor: Support environment-variable replacement for usernames in dependency URLs Support environment-variable replacement for usernames in dependency URLs Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants