<p>With some help from a few fellow plutus pioneers that also ran into this issue, it has been resolved.</p>
<p>This was the solution:</p>
<pre><code>For Windows users who encounter the following error in Docker or wsl:
 &quot;Index state found was 2021-02-24T00:00:00Z and no index-sha256 was provided.&quot;
It turns out, you have to git clone Plutus with autocrlf disabled: 
git config --global core.autocrlf false 
prior to cloning. 

Another option is to clone using git inside wsl or Docker, which implicitly checks out with Linux line endings.

The automatic eol conversion seems to mess something up. No clue what exactly. See [here](https://github.com/input-output-hk/plutus/issues/2983) for details.
</code></pre>

CC BY-SA 4.0
2022-01-22T10:33:28.610Z
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).
Community
CC BY-SA 4.0
2022-05-07T13:40:43.527Z
The proposed solution works.
lambda
CC BY-SA 4.0
2022-01-18T02:27:18.980Z
2022-01-18T02:27:18.980Z
brian
<p>I'm having issues starting nix-shell from the plutus-apps directory.</p>
<p>I have followed the steps provided here: <a href="https://docs.plutus-community.com/docs/setup/WindowsCohort2.html" rel="nofollow noreferrer">https://docs.plutus-community.com/docs/setup/WindowsCohort2.html</a>.</p>
<p>Below is the full output of what I see when I try to start nix-shell with the --show-trace flag:</p>
<pre><code>/mnt/c/dev/workspace/plutus-apps$ nix-shell --show-trace
error: Index state found was 2021-10-20T00:00:00Z and no `index-sha256` was provided.

       … while evaluating anonymous lambda

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/lib/call-cabal-project-to-nix.nix:9:1:

            8| in
            9| { name          ? src.name or null # optional name for better error messages
             | ^
           10| , src

       … from call site

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:487:36:

          486|               args = { caller = &quot;cabalProject'&quot;; } // args';
          487|               callProjectResults = callCabalProjectToNix args;
             |                                    ^
          488|               plan-pkgs = importAndFilterProject {

       … while evaluating anonymous lambda

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/lib/import-and-filter-project.nix:5:1:

            4| { pkgs, haskellLib }:
            5| { projectNix, sourceRepos, src }:
             | ^
            6| let

       … from call site

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:488:27:

          487|               callProjectResults = callCabalProjectToNix args;
          488|               plan-pkgs = importAndFilterProject {
             |                           ^
          489|                 inherit (callProjectResults) projectNix sourceRepos src;

       … while evaluating the attribute 'hsPkgs.shellFor'

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:510:43:

          509|               project = addProjectAndPackageAttrs rec {
          510|                   inherit (pkg-set.config) hsPkgs;
             |                                           ^
          511|                   inherit pkg-set;

       … while evaluating 'shellFor'

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:612:24:

          611|             #
          612|             shellFor = shellArgs:
             |                        ^
          613|               let

       … from call site

       at /mnt/c/dev/workspace/plutus-apps/shell.nix:115:1:

          114| in
          115| haskell.project.shellFor {
             | ^
          116|   nativeBuildInputs = nixpkgsInputs ++ localInputs ++ [ sphinxTools ];

       … while evaluating anonymous lambda

       at /mnt/c/dev/workspace/plutus-apps/shell.nix:1:1:

            1| { system ? builtins.currentSystem
             | ^
            2| , enableHaskellProfiling ? false

       … from call site
</code></pre>
<p>I am using Windows 11 wsl2 with Debian distro</p>

CC BY-SA 4.0
2022-01-17T05:27:45.343Z
This very much looks like your `plutus-apps` checkout is corrupted? Can you provide the git rev of your `plutus-apps` checkout (e.g. `git rev-parse HEAD`) and what ever `git status` lists?
angerman
<plutus-pioneer-program><nix-shell>
nix-shell : getting error "Index state found was 2021-10-20T00:00:00Z and no `index-sha256` was provided."
# nix-shell : getting error "Index state found was 2021-10-20T00:00:00Z and no `index-sha256` was provided."

(Asked by: username_0 on 2022-01-16)

I'm having issues starting nix-shell from the plutus-apps directory.
I have followed the steps provided here: https://docs.plutus-community.com/docs/setup/WindowsCohort2.html.
Below is the full output of what I see when I try to start nix-shell with the --show-trace flag:
/mnt/c/dev/workspace/plutus-apps$ nix-shell --show-trace
error: Index state found was 2021-10-20T00:00:00Z and no `index-sha256` was provided.

       … while evaluating anonymous lambda

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/lib/call-cabal-project-to-nix.nix:9:1:

            8| in
            9| { name          ? src.name or null # optional name for better error messages
             | ^
           10| , src

       … from call site

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:487:36:

          486|               args = { caller = "cabalProject'"; } // args';
          487|               callProjectResults = callCabalProjectToNix args;
             |                                    ^
          488|               plan-pkgs = importAndFilterProject {

       … while evaluating anonymous lambda

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/lib/import-and-filter-project.nix:5:1:

            4| { pkgs, haskellLib }:
            5| { projectNix, sourceRepos, src }:
             | ^
            6| let

       … from call site

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:488:27:

          487|               callProjectResults = callCabalProjectToNix args;
          488|               plan-pkgs = importAndFilterProject {
             |                           ^
          489|                 inherit (callProjectResults) projectNix sourceRepos src;

       … while evaluating the attribute 'hsPkgs.shellFor'

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:510:43:

          509|               project = addProjectAndPackageAttrs rec {
          510|                   inherit (pkg-set.config) hsPkgs;
             |                                           ^
          511|                   inherit pkg-set;

       … while evaluating 'shellFor'

       at /nix/store/8n76c1c3nz2wl6dzxmxdz2y5xrx70flw-source/overlays/haskell.nix:612:24:

          611|             #
          612|             shellFor = shellArgs:
             |                        ^
          613|               let

       … from call site

       at /mnt/c/dev/workspace/plutus-apps/shell.nix:115:1:

          114| in
          115| haskell.project.shellFor {
             | ^
          116|   nativeBuildInputs = nixpkgsInputs ++ localInputs ++ [ sphinxTools ];

       … while evaluating anonymous lambda

       at /mnt/c/dev/workspace/plutus-apps/shell.nix:1:1:

            1| { system ? builtins.currentSystem
             | ^
            2| , enableHaskellProfiling ? false

       … from call site

I am using Windows 11 wsl2 with Debian distro

**Tags:** plutus-pioneer-program, nix-shell
> **Comments:**
> **username_1**: This very much looks like your `plutus-apps` checkout is corrupted? Can you provide the git rev of your `plutus-apps` checkout (e.g. `git rev-parse HEAD`) and what ever `git status` lists?  

---

## 1 answers

### Answer by username_0 on 2022-01-18. Score: 0

With some help from a few fellow plutus pioneers that also ran into this issue, it has been resolved.
This was the solution:
For Windows users who encounter the following error in Docker or wsl:
 "Index state found was 2021-02-24T00:00:00Z and no index-sha256 was provided."
It turns out, you have to git clone Plutus with autocrlf disabled: 
git config --global core.autocrlf false 
prior to cloning. 

Another option is to clone using git inside wsl or Docker, which implicitly checks out with Linux line endings.

The automatic eol conversion seems to mess something up. No clue what exactly. See [here](https://github.com/input-output-hk/plutus/issues/2983) for details.

> **Comments:**
> **username_2**: As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).  
> **username_3**: The proposed solution works.  

---

