| 7 Nov 2023 |
K900 | It's one of your dependencies | 19:37:35 |
K900 | Not your primary project | 19:37:39 |
K900 | And we don't inject poetry into things unconditionally | 19:37:48 |
@fractivore:cyberia.club | hmm, okay, I guess that makes sense | 19:38:15 |
@fractivore:cyberia.club | I'm working through them one by one. One other question, what does the "git tree is dirty" warning mean? | 19:46:49 |
ToxicFrog | You have changes that haven't been committed to git, and it's using the changed versions of the files | 20:02:54 |
ToxicFrog | Basically "don't forget to commit your changes once you get this working" | 20:03:07 |
@fractivore:cyberia.club | ahh, ok, thanks | 20:07:06 |
@fractivore:cyberia.club | I worked through several of those overrides, but now I'm getting this error:
error: builder for '/nix/store/pkifnw3bdlg37rv5ss184m2xvdlp6jb8-python3.11-bbot-1.0.3.drv' failed with exit code 1;
last 10 log lines:
> patch.activate()
> File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 52, in activate
> _apply_patches()
> File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 43, in _apply_patches
> _patch_poetry_create(factory_mod)
> File "/nix/store/n9ix258chw1nm40bk8lr2kp4jw8lllhk-python3.11-poetry-dynamic-versioning-0.21.5/lib/python3.11/site-packages/poetry_dynamic_versi
oning/patch.py", line 14, in _patch_poetry_create
> from poetry.core.semver.version import Version as PoetryVersion
> ModuleNotFoundError: No module named 'poetry.core.semver'
>
> ERROR Backend 'poetry_dynamic_versioning.backend' is not available.
| 20:26:36 |
K900 | That's probably just broken with latest poetry | 20:27:05 |
@fractivore:cyberia.club | It looks similar, but fails with exit code 1 rather than 2, and it appears to be the main project builder | 20:27:13 |
@fractivore:cyberia.club | In reply to @k900:0upti.me That's probably just broken with latest poetry Should I pin to an earlier poetry version then? Can I do that with the flake? | 20:27:47 |
K900 | I'd probably try to get rid of the dependency | 20:27:59 |
K900 | Yep | 20:28:40 |
K900 | https://github.com/mtkennerly/poetry-dynamic-versioning/releases | 20:28:40 |
K900 | poetry-dynamic-versioning 0.21.5 is broken with latest poetry | 20:28:49 |
K900 | You should try and track down where it comes form | 20:29:01 |
K900 | * You should try and track down where it comes from | 20:29:09 |
K900 | And see if you can patch it out | 20:29:12 |
K900 | Actually it's a direct dependency | 20:29:28 |
K900 | So you can try just poetry-dynamic-versioning = null; | 20:29:36 |
K900 | So it just doesn't get built at all | 20:29:41 |
@fractivore:cyberia.club | In reply to @k900:0upti.me So you can try just poetry-dynamic-versioning = null; Where would I put that line? I tried
overrides = defaultPoetryOverrides.extend
(self: super: {
poetry-dynamic-versioning = null;
| 20:36:29 |
K900 | Yes, there | 20:36:38 |
@fractivore:cyberia.club | But now I just get
last 10 log lines:
> File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'poetry_dynamic_versioning'
>
> ERROR Backend 'poetry_dynamic_versioning.backend' is not available.
| 20:36:54 |
K900 | Oh | 20:37:47 |
K900 | In pyproject.toml replace
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
with
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
| 20:38:14 |
@fractivore:cyberia.club | It's building! I collected garbage after I edited the pyproject.toml file, maybe I didn't really need to do that. I'm gonna munch some more pasta while it builds. | 20:44:52 |
@fractivore:cyberia.club | yay it built! My first real derivation! 😄 | 20:51:07 |
@fractivore:cyberia.club | Now what do I do lol | 20:51:18 |