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

Use google-closure-deps instead of depswriter.py. #4849

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kjin
Copy link
Contributor

@kjin kjin commented Apr 28, 2021

In Closure Library, we will be removing depswriter.py and other Python-based build scripts soon. depswriter.py is superceded by google-closure-deps, a similar tool we maintain that is implemented in Node.js.

Here, I've substituted the depswriter.py command with a corresponding command from google-closure-deps; the CLI flags are similar. The difference in output is minimal (see below).

Explanation of "extra" flags:

  • --closure-path="node_modules/google-closure-library/closure/goog" Path to Closure (now required)
  • --file="node_modules/google-closure-library/closure/goog/deps.js" Use the deps.js file bundled with Closure as part of deps calculation
  • --exclude=... Not strictly necessary, but prevents these files from being written to deps.js as trivial, 0-dependency entries

For reference, the diff of the resulting deps.js from running npm run generate-test-files (with lines sorted and formatted for diff clarity) is here.

Fixes #4848

See also firebase/firebaseui-web#839

@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2021

⚠️ No Changeset found

Latest commit: 4f7ff9f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

kjin added a commit to kjin/firebase-js-sdk that referenced this pull request Apr 28, 2021
kjin added a commit to kjin/firebase-js-sdk that referenced this pull request Apr 28, 2021
@kjin
Copy link
Contributor Author

kjin commented May 13, 2021

@bojeil-google Friendly ping, you approved a similar PR of mine in firebaseui-web, do you mind taking a look at this as well? Thanks!

@sam-gc
Copy link
Contributor

sam-gc commented May 17, 2021

I can also approve this change-- have you run the program in question to verify the update works? I can also do it but if you've already done it I won't double check

@kjin
Copy link
Contributor Author

kjin commented May 17, 2021

@sam-gc Ah, for some reason I had thought I needed two approvers. I think I did, but let me double check

@sam-gc
Copy link
Contributor

sam-gc commented May 17, 2021

Sounds good, when you're done you can go ahead and merge

@kjin
Copy link
Contributor Author

kjin commented May 17, 2021

@sam-gc I'm running into trouble running any of the commands that use the generated deps.js file. yarn serve seems to hang and yarn test also hangs after some tests fail (both on master and with this change). I'm pretty confident the changes here are not functionally different (see the linked deps.js comparison in my PR description), could you confirm this on your side and land it? Thanks! (I can't merge it anyway)

@sam-gc
Copy link
Contributor

sam-gc commented May 17, 2021

Okay, I'll take a look tomorrow

@Feiyang1
Copy link
Member

Any updates?

@kjin
Copy link
Contributor Author

kjin commented Aug 20, 2021

Ping @sam-gc -- anything else that needs to be done here?

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

Successfully merging this pull request may close these issues.

Migrate off depswriter.py
3 participants