axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.31k stars 55 forks source link

Panics when used on GitHub Enterprise Server #1104

Open BasixKOR opened 1 month ago

BasixKOR commented 1 month ago

So, I think this is a very niche use-case but it seems like cargo-dist doesn't recognize anything other than GitHub.com as valid host.

 WARN skipping npm installer: couldn't compute a URL to download artifacts from
 WARN skipping Homebrew formula: couldn't compute a URL to download artifacts from
  × cargo dist panicked.
  ├─▶ at cargo-dist/src/backend/ci/github.rs:107:14
  ╰─▶ should not be possible to have the Github CI backend without hosting!?

I tried running init with github CI and releases enabled and it panics and I was wondering if we can relax down the host check.

mistydemeo commented 3 weeks ago

Sorry for the late reply!

It's right that we only support two hosting methods right now: GitHub releases and our own beta releases host, Axo releases. You mentioned releases are enabled though - what does your config look like?