Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ormolu-0.5.0.1 broken … #209397

Closed
yvan-sraka opened this issue Jan 7, 2023 · 3 comments
Closed

ormolu-0.5.0.1 broken … #209397

yvan-sraka opened this issue Jan 7, 2023 · 3 comments

Comments

@yvan-sraka
Copy link
Contributor

Steps To Reproduce

nix-shell -p ormolu with current nixpkgs-unstable, will produce error:

error: cycle detected in build of '/nix/store/mn4cj42d5b99i1iky0k6z0iq0m8jwrix-ormolu-0.5.0.1.drv' in the references of output 'bin' from output 'out'

Build log

https://gist.github.com/c0207dde2cda91d1883fb6c1e4815b2a

Additional context

The content of /nix/store/mn4cj42d5b99i1iky0k6z0iq0m8jwrix-ormolu-0.5.0.1.drv produced.

Notify maintainers

Cross-posted here: tweag/ormolu#965

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

yvan@Butternut ~ % nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.2.0, macOS 13.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.12.0`
 - channels(yvan): `"darwin, home-manager, nixpkgs"`
 - channels(root): `""`
 - nixpkgs: `/Users/yvan/.nix-defexpr/channels/nixpkgs`
@srid
Copy link
Contributor

srid commented Jan 10, 2023

See #140774 (comment)

@haroldcarr
Copy link

Last night I helped a friend get setup using GHC via devenv.sh.
We used this devenv.nix file (that works for me):

{ pkgs, ... }:

{
  packages = [ pkgs.ghc
               pkgs.git
               pkgs.haskell-language-server
               pkgs.hlint
               pkgs.stylish-haskell
             ];

  languages.haskell.enable = true;
  languages.nix.enable     = true;
}

We got the "ormolu cycle". Ugh.

In our case, the workaround was for me to have him delete his devenv.lock file and replace it with mine (which points to older stuff).

But this means anyone trying GHC via devenv is going to hit this.
Not a good first look.

@yvan-sraka
Copy link
Contributor Author

This has been fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants