Migration Guide
This guide helps you migrate from the previous “raw requirements” system to workspace dependencies. See the main workspace dependencies guide for feature details.
Migration steps
Section titled “Migration steps”1. Resolve conflicts
Section titled “1. Resolve conflicts”If you have a /dependencies folder at the workspace root, rename it. The workspace root /dependencies path is reserved for the new system.
2. Move dependency files
Section titled “2. Move dependency files”Move all your requirements.txt, package.json, composer.json files to the workspace /dependencies directory:
requirements.txt→/dependencies/<name>.requirements.inpackage.json→/dependencies/<name>.package.jsoncomposer.json→/dependencies/<name>.composer.json
Choose descriptive names like ml.requirements.in or api.package.json.
3. Update scripts
Section titled “3. Update scripts”Add annotations to scripts that should use workspace dependencies:
# requirements: ml
// package_json: api
// composer_json: web4. Set defaults (optional)
Section titled “4. Set defaults (optional)”Create unnamed default files to set workspace-wide behavior:
/dependencies/requirements.in- Requirements mode default
This will be referenced by all scripts unless explicitly told otherwise. Choose one form per language.
5. Update CLI
Section titled “5. Update CLI”Upgrade to the latest Orvanta CLI version that supports workspace dependencies.
6. Test
Section titled “6. Test”Generate lockfiles and test your scripts:
orvanta generate-metadata script_pathorvanta script run script_pathTroubleshooting
Section titled “Troubleshooting”- Scripts fail: Check that dependency files contain all required packages
- CLI errors: Ensure you have the latest CLI version
- Permission errors: Workspace admin permissions required for dependency management
- Missing dependencies: Add missing packages to workspace dependency files
For detailed feature information, see the workspace dependencies guide.