Comments (3)
I think Gitlab is supported, but the flake reference is a little different. I'm looking at the Docs here:
https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html
Since GitLab allows for self-hosting, you can specify host as a parameter, to point to any instances other than gitlab.com.
Some examples:
gitlab:veloren/veloren
gitlab:veloren/veloren/master
gitlab:veloren/veloren/80a4d7f13492d916e47d6195be23acae8001985a
gitlab:openldap/openldap?host=git.openldap.org
So I think the right reference for your private hosted Gitlab would be:
gitlab:devbox-plugins/my-plugin?host=gitlab.private-server.com&dir=test
If this doesn't work, we'd definitely welcome a pull request to add the support
from devbox.
@Lagoja thank you for the recommendation. My exact situation adds some complexity since the GitLab server I'm attempting to access is done via tunnel using the aws ssm start-session
subcommand (I don't expect awareness/understanding of that CLI). However, it unfortunately seems that using the a scheme other than gitlab
returns an error of the form:
Error: unsupported flake reference URL scheme: X
After starting the tunnel, repos are cloned using git clone ssh://git@localhost:1234/namespace/repo
(the port may differ), and attempted this:
{
// other sections in the devbox.json
"include:" [
"gitlab:namespace/repo?host=localhost:1234&dir=plugin"
]
// other sections in the devbox.json
}
Below are a few of the others I tried, and returned a message of Error: unsupported flake reference URL scheme: X
or Error: unsupported ref type "X"
.
"git+ssh:namespace/repo?host=localhost:1234&dir=plugin"
"git+ssh://namespace/repo?host=localhost:1234&dir=plugin"
"gitlab+ssh:namespace/repo?host=localhost:1234&dir=plugin"
"gitlab+ssh://namespace/repo?host=localhost:1234&dir=plugin"
"ssh:namespace/repo?host=localhost:1234&dir=plugin"\
"ssh://namespace/repo?host=localhost:1234&dir=plugin"
"git:namespace/repo?host=localhost:1234&dir=plugin"
"git://namespace/repo?host=localhost:1234&dir=plugin"
It does seem like I'll need to create a PR to support the additional scheme. Also, just as an FYI, I'm using devbox
version 0.10.5
from devbox.
@Lagoja currently working on an implementation, and will submit a PR ASAP
from devbox.
Related Issues (20)
- the nixPkgs.commit property of devbox.json is not documented HOT 2
- Support for FHS Environments HOT 1
- Feature Request: Designate Dev-Dependencies in devbox.json
- Support process-compose override
- Use process-compose working directory devbox shell
- Add support for process-compose namespacing
- Simplify install process
- devbox shell unicode symbols HOT 3
- Fleek is deprecated - remove it from docs
- Package binaries not available in `tmux`
- Unable to find libclang HOT 1
- Cannot find flake in the flake registries when instaling python311Packages.torch-bin
- Add name/description to devbox init
- `refresh` alias overwrites init_hook
- Add ability to pass arbitrary flags to process-compose
- Use devbox project to manage utilities like process compose.
- Running a script inside devbox shell throws `file not found` error
- Configurable plugins
- Provide `devbox (global) outdated`
- Request to add hyperdb-python
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devbox.