Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[features]: A design of local project #50

Open
lvyuemeng opened this issue Dec 12, 2024 · 1 comment
Open

[features]: A design of local project #50

lvyuemeng opened this issue Dec 12, 2024 · 1 comment
Labels
feature | 功能 New feature or request xvm模块

Comments

@lvyuemeng
Copy link
Collaborator

Prefer the local project style.(rather virtual envs.)
Storing env metadata in project location (mimic to pixi).

{
  "manifest_path": "path to project env setting",
  "environment_name": "...",
  "xlings_version": "...",
  "environment_lock_file_hash": "..."
}

use lock_file_hash to avoid entire copy with lazy evaluated(update when hash isn't equal).

-- local project locked file.
env = {
     deps = {...} -- store packages.
} 

-- local project setting file.
project = {
   authors = "...",
   description = "...",
   name = "...",
   ...
}  
-- further discuss the role of xlings in design.(in which extent of role should xlings take over?)
-- should we make local installation? (not recommend) prefer a local path modification.(open a new transient shell or `xlings run (certain cmd)` (for example: xlings run cargo run).)
-- prefer a general parser for toml.(or others rather than raw lua file.)
@lvyuemeng lvyuemeng changed the title A design of local project [feature]: A design of local project Dec 12, 2024
@lvyuemeng lvyuemeng changed the title [feature]: A design of local project [features]: A design of local project Dec 12, 2024
@lvyuemeng
Copy link
Collaborator Author

Recommend a general parser for toml, yaml etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature | 功能 New feature or request xvm模块
Projects
None yet
Development

No branches or pull requests

1 participant