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

Add tool for easily getting an old version of filer #646

Closed
humphd opened this issue Dec 21, 2018 · 1 comment
Closed

Add tool for easily getting an old version of filer #646

humphd opened this issue Dec 21, 2018 · 1 comment

Comments

@humphd
Copy link
Contributor

humphd commented Dec 21, 2018

For our migration testing and tools/fs-image.js, it's necessary to be able to pull old versions of our filer bundle out of git.

I'd like a tool that works like this:

$ tools/get-filer-version v0.0.44
Wrote filer-v0.0.44.js

$ tools/get-filer-version d66114e
Wrote filer-d66114e.js

This could then be used with fs-image to create a filesystem image using an older version of filer:

$ tools/get-filer-version v0.0.44
Wrote filer-v0.0.44.js

$ fs-image files/ --filer .filer-v0.44.js

The tool can basically take the argument you pass it, assume it's a SHA-like value (SHA, branch, tag) and then checkout dist/filer.js at that commit.

@humphd humphd closed this as completed in 7301024 Dec 22, 2018
@humphd
Copy link
Contributor Author

humphd commented Dec 22, 2018

Fixed. See https://github.com/filerjs/filer/blob/master/tools/get-filer-version.js for details on how this works.

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

No branches or pull requests

1 participant