Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Export sorted map #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Export sorted map #68

wants to merge 2 commits into from

Conversation

demmer
Copy link

@demmer demmer commented Jan 8, 2021

Description

Manually generate the exported autoload map in sorted order.

Details

At Slack we commit the vendor autoload map to source control, which makes diffs hard to comprehend given that the map is unordered.

This change replaces the var_export with manually generated code after sorting the arrays so that the generated autoload map should be stable.

CLA

@ssandler requested that I be added to the Slack corporate CLA at some point.

demmer added 2 commits January 8, 2021 13:54
For projects that commit the autoload map, this makes the diffs more
sensible.
@facebook-github-bot
Copy link

Hi @demmer!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@jjergus
Copy link
Contributor

jjergus commented Jan 12, 2021

Looks good to me, but do we need \var_export or something similar to ensure special characters are escaped properly? (e.g. \ in filenames if we ever support Windows, but Unix filenames can also contain pretty much any character AFAIK).

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@fredemmott fredemmott left a comment

Choose a reason for hiding this comment

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

Sorry, bumping back re @jjergus 's escaping comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants