Skip to content

Update the project modules and fix missing args param #1144

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

Merged
merged 2 commits into from
Jun 20, 2021

Conversation

hamishmack
Copy link
Collaborator

@hamishmack hamishmack commented Jun 20, 2021

There are now 4 project modules used to check the arguments passed to the various project functions:

  • project-common.nix - Arguments used by all the project functions
  • stack-project.nix - Used by the stackProject and stackProject' functions
  • cabal-project.nix - Used by the cabalProject and cabalProject' functions
  • project.nix - Just the projectFileName argument that is used by project and project' functions to determine whether to call stackProject or cabalProject function.

This also includes the rawProject.args that was mistakenly left out of #1141 causing #1142 and improvements for the docs for the use of the shell argument in flake.nix files.

@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Jun 20, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2021

try

Timed out.

@hamishmack
Copy link
Collaborator Author

Hydra did finish ok in the end.

@hamishmack hamishmack merged commit f279cde into master Jun 20, 2021
@iohk-bors iohk-bors bot deleted the hkm/project-module-fixes branch June 20, 2021 06:00
booniepepper pushed a commit to booniepepper/haskell.nix that referenced this pull request Feb 4, 2022
…k#1144)

There are now 4 project modules used to check the arguments passed to the various project functions:

* `project-common.nix` - Arguments used by all the project functions
* `stack-project.nix` - Used by the `stackProject` and `stackProject'` functions
* `cabal-project.nix` - Used by the `cabalProject` and `cabalProject'` functions
* `project.nix` - Just the `projectFileName` argument that is used by `project` and `project'` functions to determine whether to call `stackProject` or `cabalProject` function.

This also includes the `rawProject.args` that was mistakenly left out of input-output-hk#1141 causing input-output-hk#1142 and improvements for the docs for the use of the `shell` argument in `flake.nix` files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant