mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			448 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			448 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Update dependencies in dify/api project using uv
 | |
| set -e
 | |
| set -o pipefail
 | |
| 
 | |
| SCRIPT_DIR="$(dirname "$0")"
 | |
| REPO_ROOT="$(dirname "${SCRIPT_DIR}")"
 | |
| 
 | |
| # rely on `poetry` in path
 | |
| if ! command -v uv &> /dev/null; then
 | |
|     echo "Installing uv ..."
 | |
|     pip install uv
 | |
| fi
 | |
| 
 | |
| cd "${REPO_ROOT}"
 | |
| 
 | |
| # refreshing lockfile, updating locked versions
 | |
| uv lock --project api --upgrade
 | |
| 
 | |
| # check uv.lock in sync with pyproject.toml
 | |
| uv lock --project api --check
 | 
