mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-05 11:20:55 +01:00
Merge branch '0.5' into 0.6
Some checks failed
Debug / Get build version (push) Has been cancelled
Test & Lint / lint (push) Has been cancelled
Debug / Build for linux-x86_64 (push) Has been cancelled
Debug / Build for macos-aarch64 (push) Has been cancelled
Debug / Build for macos-x86_64 (push) Has been cancelled
Debug / Build for windows-x86_64 (push) Has been cancelled
Some checks failed
Debug / Get build version (push) Has been cancelled
Test & Lint / lint (push) Has been cancelled
Debug / Build for linux-x86_64 (push) Has been cancelled
Debug / Build for macos-aarch64 (push) Has been cancelled
Debug / Build for macos-x86_64 (push) Has been cancelled
Debug / Build for windows-x86_64 (push) Has been cancelled
This commit is contained in:
commit
243dd39e14
3 changed files with 16 additions and 6 deletions
|
@ -38,17 +38,17 @@ Git dependencies are dependencies on packages hosted on a Git repository.
|
|||
|
||||
```toml title="pesde.toml"
|
||||
[dependencies]
|
||||
acme = { repo = "acme/package", rev = "main" }
|
||||
acme = { repo = "acme/package", rev = "aeff6" }
|
||||
```
|
||||
|
||||
In this example, we're specifying a dependency on the package contained within
|
||||
the `acme/package` GitHub repository at the `main` branch.
|
||||
the `acme/package` GitHub repository at the `aeff6` commit.
|
||||
|
||||
You can also use a URL to specify the Git repository and a specific commit.
|
||||
You can also use a URL to specify the Git repository and a tag for the revision.
|
||||
|
||||
```toml title="pesde.toml"
|
||||
[dependencies]
|
||||
acme = { repo = "https://git.acme.local/package.git", rev = "aeff6" }
|
||||
acme = { repo = "https://git.acme.local/package.git", rev = "v0.1.0" }
|
||||
```
|
||||
|
||||
You can also specify a path if the package is not at the root of the repository.
|
||||
|
|
|
@ -41,6 +41,16 @@ You can follow the installation instructions in the
|
|||
pesde should now be installed on your system. You may need to restart your
|
||||
computer for the changes to take effect.
|
||||
|
||||
<Aside type="caution">
|
||||
pesde uses symlinks which are an administrator-level operation on Windows.
|
||||
To ensure proper functionality, enable [Developer Mode](https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development).
|
||||
|
||||
|
||||
If you are getting errors such as `Failed to symlink file, a required
|
||||
privilege is not held by the client`, then enabling this setting will fix
|
||||
them.
|
||||
</Aside>
|
||||
|
||||
</TabItem>
|
||||
<TabItem label="Linux & macOS">
|
||||
|
||||
|
|
|
@ -389,14 +389,14 @@ foo = { wally = "acme/foo", version = "1.2.3", index = "acme" }
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
foo = { repo = "acme/packages", rev = "main", path = "foo" }
|
||||
foo = { repo = "acme/packages", rev = "aeff6", path = "foo" }
|
||||
```
|
||||
|
||||
**Git dependencies** contain the following fields:
|
||||
|
||||
- `repo`: The URL of the Git repository.
|
||||
This can either be `<owner>/<name>` for a GitHub repository, or a full URL.
|
||||
- `rev`: The Git revision to install. This can be a branch, tag, or commit hash.
|
||||
- `rev`: The Git revision to install. This can be a tag or commit hash.
|
||||
- `path`: The path within the repository to install. If not specified, the root
|
||||
of the repository is used.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue