You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
I just discovered DevBox
I read the whole documentation
I found some errors
I did a big PR with anrelated content, if you disagree with some of the
commits, i can split in several PR
## How was it tested?
It's just markdown content, i haven't tested it
---------
Signed-off-by: John Lago <[email protected]>
Co-authored-by: John Lago <[email protected]>
Copy file name to clipboardExpand all lines: docs/app/docs/configuration.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Currently, you can only set values using string literals, `$PWD`, and `$PATH`. A
166
166
167
167
### Shell
168
168
169
-
The Shell object defines init hooks and scripts that can be run with your shell. Right now two fields are supported: *init_hooks*, which run a set of commands every time you start a devbox shell, and *scripts*, which are commands that can be run using `devbox run`
169
+
The Shell object defines init hooks and scripts that can be run with your shell. Right now two fields are supported: `init_hook`, which run a set of commands every time you start a devbox shell, and `scripts`, which are commands that can be run using `devbox run`
170
170
171
171
#### Init Hook
172
172
@@ -257,23 +257,24 @@ An example of a devbox configuration for a Rust project called `hello_world` mig
Copy file name to clipboardExpand all lines: docs/app/docs/guides/pinning_packages.md
+14-21Lines changed: 14 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,37 +14,30 @@ Because the repository changes frequently, and new releases of Nixpkgs infrequen
14
14
15
15
### Searching for Available Packages
16
16
17
-
You can look up the available versions of a package by running `devbox search <package_name>`. For example, to see the available versions of `python`, you can run `devbox search python`:
17
+
You can look up the available versions of a package by running `devbox search <package_name>`. For example, to see the available versions of `nodejs`, you can run `devbox search nodejs`:
Warning: Showing top 10 results and truncated versions. Use --show-all to show all.
35
28
```
36
29
37
30
### Adding a Specific Version to Devbox
38
31
39
-
To add a specific version of a package with `<package_name>@<version>`. For example, to pin the `python` package to version `3.11.1`, you can run `devbox add [email protected]` or add `[email protected]` to the packages list in your `devbox.json`:
32
+
To add a specific version of a package with `<package_name>@<version>`. For example, to pin the `nodejs` package to version `20.1.0`, you can run `devbox add [email protected]` or add `[email protected]` to the packages list in your `devbox.json`:
For packages that use semver, you can pin a range of versions for your project. For example, if you pin `python@3`, it will install the latest minor and patch version of `python >=3.0.0`. You can update to the newest package version that matches your criteria by running `devbox update`.
40
+
For packages that use semver, you can pin a range of versions for your project. For example, if you pin `nodejs@20`, it will install the latest minor and patch version of `nodejs >=20.0.0`. You can update to the newest package version that matches your criteria by running `devbox update`.
48
41
49
42
When you run a command that installs your packages (like `devbox shell` or `devbox install`), Devbox will generate a `devbox.lock` file that contains the exact version and commit hash for your packages. You should check this file into source control to ensure that other developers will get the same environment.
50
43
@@ -64,10 +57,10 @@ Whenever you run `devbox update`, packages with the latest tag will be updated t
64
57
If you want to use a specific Nixpkg revision for a package, you can use a `github:nixos/nixpkgs/<commit_sha>#<pkg>` Flake reference. The example below shows how to install the `hello` package from a specific Nixpkg commit:
Copy file name to clipboardExpand all lines: docs/app/docs/quickstart.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ We'll create a new development environment with the packages we need. These pack
45
45
46
46
3. Search for packages to add to your Devbox project with `devbox search`. For example, to search for Python packages, you can run the `devbox search python3`
47
47
48
-
4. You can add a package to your project by running `devbox add <package>`. For example, running the following will install the latest available version of Python in your project:
48
+
4. You can add a package to your project by running `devbox add <package>`. For example, running the following will install the latest available version of RipGrep in your project:
0 commit comments