Files
crawlab/core/constants/dependency.go
Marvin Zhang 7b6805a834 feat: enhance task runner with improved logging and dependency support
- Added support for new dependency file types: 'go.mod' and 'pom.xml' in dependency.go.
- Refactored command configuration in runner.go to improve logging and error handling.
- Introduced a new method to configure Node.js paths, enhancing environment setup for tasks.
- Enhanced IPC message handling with detailed logging for better traceability.
- Updated service logging to remove unnecessary prefixes for cleaner output.
- Improved command execution handling in process.go for better compatibility across platforms.
2024-12-31 22:52:21 +08:00

30 lines
755 B
Go

package constants
const (
DependencyTypePython = "python"
DependencyTypeNode = "node"
DependencyTypeGo = "go"
DependencyTypeJava = "java"
DependencyTypeBrowser = "browser"
)
const (
DependencyStatusInstalling = "installing"
DependencyStatusInstalled = "installed"
DependencyStatusUninstalling = "uninstalling"
DependencyStatusUninstalled = "uninstalled"
DependencyStatusError = "error"
DependencyStatusAbnormal = "abnormal"
)
const (
DependencyFileTypeRequirementsTxt = "requirements.txt"
DependencyFileTypePackageJson = "package.json"
DependencyFileTypeGoMod = "go.mod"
DependencyFileTypePomXml = "pom.xml"
)
const (
DependencyActionSync = "sync"
DependencyActionSetup = "setup"
)