Git Product home page Git Product logo

Comments (3)

Lagoja avatar Lagoja commented on June 2, 2024

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.

Bee-Mar avatar Bee-Mar commented on June 2, 2024

@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.

Bee-Mar avatar Bee-Mar commented on June 2, 2024

@Lagoja currently working on an implementation, and will submit a PR ASAP

from devbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.