1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
Commit graph

317 commits

Author SHA1 Message Date
Robert Hensing
ac5d0b2d4d transposition: Improve perInput error message 2024-01-11 12:17:33 +01:00
hercules-ci[bot]
88a2cd8166
Merge pull request #204 from hercules-ci/flake-update
`flake.lock`: Update
2024-01-01 23:40:58 +00:00
Hercules CI Effects
a92a54c1b6 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/e92039b55bcd58469325ded85d4f58dd5a4eaf58?dir=lib' (2023-11-29)
  → 'github:NixOS/nixpkgs/b0d36bd0a420ecee3bc916c91886caca87c894e9?dir=lib' (2023-12-30)
2024-01-01 23:36:22 +00:00
DavHau
7de0c651b7 raise error when flake attribute doesn't exist
Currently when trying to access packages from input flakes for a system that isn't supported by that flake, the error is not very conclusive.
It costed me at least an hour to grasp this. Now putting in this error message to prevent others from falling into the same trap.
2023-12-10 20:07:51 +07:00
hercules-ci[bot]
34fed993f1
Merge pull request #199 from hercules-ci/flake-update
`flake.lock`: Update
2023-12-01 23:39:28 +00:00
Hercules CI Effects
f643cbabe3 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29)
  → 'github:NixOS/nixpkgs/e92039b55bcd58469325ded85d4f58dd5a4eaf58?dir=lib' (2023-11-29)
2023-12-01 23:36:19 +00:00
hercules-ci[bot]
8c9fa25450
Merge pull request #196 from hercules-ci/flake-update
`flake.lock`: Update
2023-11-01 23:41:02 +00:00
Hercules CI Effects
216e40a3f8 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a?dir=lib' (2023-09-29)
  → 'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29)
2023-11-01 23:36:20 +00:00
Robert Hensing
f76e870d64
Merge pull request #194 from hercules-ci/error-location
Fix default error location
2023-10-29 12:33:47 +01:00
Robert Hensing
e21f594423 Fix error location
The path didn't make it into the message because of a silly coding
mistake and overlooking the actual location in manual testing.
2023-10-29 12:30:12 +01:00
Robert Hensing
25abf6caa8
Merge pull request #192 from hercules-ci/moduleLocation
moduleLocation, but also automatic
2023-10-29 12:23:28 +01:00
Robert Hensing
c8c8e5661e Remove errorLocation from the tests
As mentioned in the previous commit, we don't have a use case for
this in flake-parts yet, as far as I'm aware. It can be exposed
when we do have a concrete use case where it is needed.
2023-10-14 00:06:42 +02:00
Robert Hensing
f427ecf1a0 Repurpose moduleLocation impl for new errorLocation
The difference is that moduleLocation is "guaranteed" reliable data,
whereas errorLocation is the best choice for error messages in the core.

moduleLocation is suitable for the module key attribute.
errorLocation is best for the *ROOT* module _file attribute.

Initially I applied errorLocation in too many places. It is only needed
when the flake output attribute names are strict in it.
To avoid confusion, I'm not exposing errorLocation to the modules, until
we have a concrete use case for it.
2023-10-14 00:03:28 +02:00
Robert Hensing
fc74939824 mkFlake: Prefer unsafeGetAttrPos over self.outPath for error message
This would not be advisable for anything other than error messages,
because Nix does not commit to any semantics for that function.
2023-10-13 23:03:07 +02:00
Robert Hensing
c9afaba3df
Merge pull request #190 from hercules-ci/template-package
Add template/package
2023-10-03 16:30:47 +02:00
Robert Hensing
279338e390
Merge pull request #188 from hercules-ci/doc-transposition
transposition: Improve doc
2023-10-03 16:10:38 +02:00
Robert Hensing
9551c1dbc1 transposition: Improve doc 2023-10-03 16:09:54 +02:00
Robert Hensing
6c88b31621 Add template/package 2023-10-03 16:05:44 +02:00
hercules-ci[bot]
21928e6758
Merge pull request #189 from hercules-ci/flake-update
`flake.lock`: Update
2023-10-01 23:41:30 +00:00
Hercules CI Effects
2d841c9122 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85?dir=lib' (2023-08-31)
  → 'github:NixOS/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a?dir=lib' (2023-09-29)
2023-10-01 23:36:24 +00:00
hercules-ci[bot]
7f53fdb7bd
Merge pull request #184 from hercules-ci/flake-update
`flake.lock`: Update
2023-09-01 23:37:41 +00:00
Hercules CI Effects
62434060bc flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01)
  → 'github:NixOS/nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85?dir=lib' (2023-08-31)
2023-09-01 23:36:21 +00:00
hercules-ci[bot]
59cf3f1447
Merge pull request #181 from hercules-ci/flake-update
`flake.lock`: Update
2023-08-01 23:38:54 +00:00
Hercules CI Effects
85c7a895eb flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29)
  → 'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01)
2023-08-01 23:36:20 +00:00
Patrick Jackson
acd542d16b apps: use lib.getExe to find executable 2023-07-31 08:56:50 -07:00
Yang, Bo
f359432597
Merge branch 'main' into moduleLocation 2023-07-22 18:07:20 -07:00
bors[bot]
8e8d955c22
Merge #171
171: Add more docs r=roberth a=woile

This PR adds the following:

- an examples folder
- an example for devShell
- templates are no longer marked as examples, now there are templates and examples avoiding confusion

#170 

Co-authored-by: Santiago Fraire <santiwilly@gmail.com>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-07-04 10:20:19 +00:00
Robert Hensing
7910deccec
examples/shell-environments/README: typo 2023-07-04 12:19:47 +02:00
hercules-ci[bot]
267149c58a
Merge pull request #177 from hercules-ci/flake-update
`flake.lock`: Update
2023-07-01 23:37:45 +00:00
Hercules CI Effects
8af754293a flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31)
  → 'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29)
2023-07-01 23:35:49 +00:00
Santiago Fraire
6f53e9012c docs: update to comments 2023-06-30 09:31:36 +02:00
bors[bot]
37dd7bb157
Merge #172
172: Add aarch64-linux and x86_64-darwin systems to the default template r=roberth a=sempruijs

The default template had only aarch64-darwin and  x86-64-linux systems. I've added aarch linux and x86-64 darwin

Co-authored-by: sempruijs <sem@pruijs.net>
2023-06-26 06:53:48 +00:00
Santiago Fraire
1a3b864261 docs: make documentation visible right away 2023-06-24 08:36:14 +02:00
Santiago Fraire
8fd103c90b docs: add troubleshooting to shell-environemnts 2023-06-24 08:22:56 +02:00
Santiago Fraire
02b1bdb2fe docs: add commands example 2023-06-24 08:16:31 +02:00
Santiago Fraire
2cf8f2e746 docs: add lock to shell-environments 2023-06-23 19:31:29 +02:00
Santiago Fraire
fa681367b3 docs(README): add examples and projects 2023-06-22 22:16:05 +02:00
Santiago Fraire
a530cce721 docs: add examples folder 2023-06-22 22:16:05 +02:00
Santiago Fraire
93292ab70a docs: add example for devShells 2023-06-22 22:15:57 +02:00
sempruijs
ebc8532767
Add aarch64-linux and x86_64-darwin systems to the default template 2023-06-17 21:11:44 +02:00
hercules-ci[bot]
71fb97f0d8
Merge pull request #167 from hercules-ci/flake-update
`flake.lock`: Update
2023-06-01 23:39:39 +00:00
Hercules CI Effects
4c50ea36d7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs-lib':
    'github:NixOS/nixpkgs/da45bf6ec7bbcc5d1e14d3795c025199f28e0de0?dir=lib' (2023-04-30)
  → 'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31)
2023-06-01 23:36:07 +00:00
Robert Hensing
6ef2707776
Merge pull request #166 from hercules-ci/nixpkgs-lower-bound
Add lower bound to lib version
2023-05-31 17:24:36 +02:00
Robert Hensing
70d1b51a85 Add lower bound to lib version 2023-05-31 17:22:41 +02:00
Robert Hensing
8eab53d223
Merge pull request #165 from hercules-ci/nixpkgs-lower-bound
Add lower bound to lib version
2023-05-31 16:33:09 +02:00
Robert Hensing
542e396949 Add lower bound to lib version 2023-05-31 16:31:11 +02:00
Robert Hensing
80717d1161
Merge pull request #163 from figsoda/unused
remove unused code
2023-05-30 16:30:39 +02:00
Robert Hensing
41a6af276c
Merge pull request #164 from hercules-ci/fix-transposition-filterAttrs
Fix transposition.nix use of filterAttrs
2023-05-30 15:46:18 +02:00
Robert Hensing
6a6d251165 Update ChangeLog 2023-05-30 15:43:56 +02:00
Robert Hensing
6ae737878e Test that packages is not strict in devShell
Discovered and solved by figsoda, see
https://github.com/hercules-ci/flake-parts/issues/160
2023-05-30 15:31:19 +02:00