Last active
October 7, 2020 16:37
-
-
Save jku/22d5f08083c8b7b2f3e552f7ca6c301e to your computer and use it in GitHub Desktop.
Example of vendoring failure with 'package.module' style imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install vendoring | |
pip install vendoring | |
# vendor tuf and securesystemslib in to _vendor/ | |
vendoring sync -v | |
# test: If you do not have tuf installed, this will fail | |
# (_vendor/tuf/client/updater.py tries to import tuf.download) | |
python3 -m _vendor.tuf.client.updater |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.vendoring] | |
destination = "_vendor/" | |
requirements = "vendor.txt" | |
namespace = "_vendor" | |
protected-files = ["vendor.txt",] | |
patches-dir = "patches" | |
[tool.vendoring.transformations] | |
substitute = [] | |
drop = ["bin/",] | |
[tool.vendoring.license.fallback-urls] | |
tuf = "https://github.com/theupdateframework/tuf/blob/develop/LICENSE" | |
[tool.vendoring.license.directories] | |
[tool.vendoring.typing-stubs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tuf==0.14.0 | |
securesystemslib==0.16.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment