Skip to content

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.

If you have a /dependencies folder at the workspace root, rename it. The workspace root /dependencies path is reserved for the new system.

Move all your requirements.txt, package.json, composer.json files to the workspace /dependencies directory:

  • requirements.txt/dependencies/<name>.requirements.in
  • package.json/dependencies/<name>.package.json
  • composer.json/dependencies/<name>.composer.json

Choose descriptive names like ml.requirements.in or api.package.json.

Add annotations to scripts that should use workspace dependencies:

# requirements: ml
// package_json: api
// composer_json: web

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.

Upgrade to the latest Orvanta CLI version that supports workspace dependencies.

Generate lockfiles and test your scripts:

orvanta generate-metadata script_path
orvanta script run script_path
  • 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.