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
{{ message }}
Repository navigation
No bootstrap files in Hackage cabal-install tar ball #7289
These files are very useful when bootstrapping cabal-install without having a previous version handy, e.g. in my OpenBSD port. I was previously using an rc-tagged bundle on github and hoping to change the dependency to Hackage instead.
Expected behavior
Enough files available on Hackage to build all of cabal-install.
Yeah, common mortals prefer to use releases. :-)
Also, it looks like the version in master suggests a folder named bootstrap (?), which doesn't exist in the released tarball as well.
So probably we are really needing a release!
Or will the bootstrap folder be only available in the git?
Probably clarifying would make sense. I will use the git version, nevertheless. Thanks!
FWIW, OpenBSD port packages its own openbsd.json. It's easy enough to regenerate and keep around. Hence from my point of view bootstrap.py is enough. Then again, I switched to grabbing a tagged version straight off github even if this is not exactly a release.
FWIW, OpenBSD port packages its own openbsd.json. It's easy enough to regenerate and keep around. Hence from my point of view bootstrap.py is enough. Then again, I switched to grabbing a tagged version straight off github even if this is not exactly a release.
Well, yes. We at FreeBSD patch the existing .json, but it is indeed easier to provide our own, because shipped .json files are usual out of date and lacking behind GHC releases.
[Edit: the below is now fixed]:
BTW, let me turn your attention to #8166. Something has broken with the creation of bootstrap files (let's hope, something trivial). So we are going to be stuck with the old bootstrap files until this is fixed.
Hi there! In the heat of the battle, this request has been ignored and then re-assigned to the upcoming release 3.12.
Is bundling bootstrap.py inside the Hackage package cabal-install (and symlinking to it from the bootstrap/ directory), but not bundling the .json files, still useful for anybody? IMHO, if your scripts get it from the repo, that may be the safest option. I don't even know if symlinks work on Windows. It would be unfortunate if you updated your scripts to get bootstrap.py from Hackage and then we had to revert the location back to bootstrap/ due to a random fallout.
I don't see a reason to prefer Hackage to GitHub for getting these script and JSON files. And the change is prone to all sorts of dangers as Mikolaj points out above.
Considering how long this went unpatched I can't justify this being a high priority item. A reason to prefer the official hackage release is just that: it's official. My guessing at the right tag and relying on github to package up the bundle is somewhat less reliable. It's somewhat ironic, that the key GitHub used to sign the latest release is GPG key ID: 4AEE18F83AFDEB23
Expired
Activity
chenrui333 commentedon Feb 22, 2021
Just to echo here, the bootstrap.py file is not part of the
cabal-install-3.4.0.0.tar.gzarrowd commentedon Mar 5, 2021
Bumped into this problem too when updating FreeBSD port of
cabal-install. Can we get the script back?ciez commentedon Mar 17, 2021
@arrowd
looks like bootstrap.sh is gone for good.
See #6701 and #6719
ambs commentedon May 5, 2021
Probably rewrite README.md, then?
fgaz commentedon May 5, 2021
@ambs what's wrong with the readme?
ambs commentedon May 5, 2021
README.md refers to the bootstrap.sh file. If it is not shipped, we should not refer to it :)
fgaz commentedon May 5, 2021
@ambs could you link to the specific line where we mention bootstrap.sh? I can't find it
ambs commentedon May 5, 2021
Probably we are referring to different things but look into https://hackage.haskell.org/package/cabal-install. Line 53.
fgaz commentedon May 5, 2021
Indeed we are! The readme is fixed on master. Changing the one on hackage would require a release
ambs commentedon May 5, 2021
Yeah, common mortals prefer to use releases. :-)
Also, it looks like the version in master suggests a folder named bootstrap (?), which doesn't exist in the released tarball as well.
So probably we are really needing a release!
Or will the bootstrap folder be only available in the git?
Probably clarifying would make sense. I will use the git version, nevertheless. Thanks!
ambs commentedon May 5, 2021
And extra detail,
bootstrap-deps.jsonseems to be missing from the master tree?gbaz commentedon Jul 10, 2021
What remains to be done to resolve this?
arrowd commentedon Jul 12, 2021
The bootstrap script should be distributed with Hackage tarball.
7 remaining items
blackgnezdo commentedon May 28, 2022
FWIW, OpenBSD port packages its own openbsd.json. It's easy enough to regenerate and keep around. Hence from my point of view
bootstrap.pyis enough. Then again, I switched to grabbing a tagged version straight off github even if this is not exactly a release.arrowd commentedon May 29, 2022
Well, yes. We at FreeBSD patch the existing
.json, but it is indeed easier to provide our own, because shipped.jsonfiles are usual out of date and lacking behind GHC releases.Mikolaj commentedon May 30, 2022
[Edit: the below is now fixed]:
BTW, let me turn your attention to #8166. Something has broken with the creation of bootstrap files (let's hope, something trivial). So we are going to be stuck with the old bootstrap files until this is fixed.
Mikolaj commentedon Feb 22, 2024
Hi there! In the heat of the battle, this request has been ignored and then re-assigned to the upcoming release 3.12.
Is bundling
bootstrap.pyinside the Hackage packagecabal-install(and symlinking to it from thebootstrap/directory), but not bundling the.jsonfiles, still useful for anybody? IMHO, if your scripts get it from the repo, that may be the safest option. I don't even know if symlinks work on Windows. It would be unfortunate if you updated your scripts to getbootstrap.pyfrom Hackage and then we had to revert the location back tobootstrap/due to a random fallout.ulysses4ever commentedon Feb 22, 2024
I don't see a reason to prefer Hackage to GitHub for getting these script and JSON files. And the change is prone to all sorts of dangers as Mikolaj points out above.
Also, priority: high is not adequate imo.
blackgnezdo commentedon Feb 23, 2024
Considering how long this went unpatched I can't justify this being a high priority item. A reason to prefer the official hackage release is just that: it's official. My guessing at the right tag and relying on github to package up the bundle is somewhat less reliable. It's somewhat ironic, that the key GitHub used to sign the latest release is GPG key ID: 4AEE18F83AFDEB23
Expired