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

fetch fails when there is only one system_lib dependency #34

Closed
iacore opened this issue Sep 30, 2021 · 4 comments
Closed

fetch fails when there is only one system_lib dependency #34

iacore opened this issue Sep 30, 2021 · 4 comments

Comments

@iacore
Copy link

iacore commented Sep 30, 2021

Given the following zig.mod:

id: puq4skwsrvrcl05vn2hj2vk536ql536rvck199kltei4jlu8
name: raylib
main: lib/raylib-zig.zig
license: MIT
description: Zig bindings for Raylib
dependencies:
  - src: system_lib raylib 3
> zigmod fetch
error: FileNotFound
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/heap.zig:150:9: 0x57b168 in std.heap.CAllocator.resize (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/heap.zig:150:9: 0x57b168 in std.heap.CAllocator.resize (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/heap.zig:150:9: 0x57b168 in std.heap.CAllocator.resize (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/heap.zig:150:9: 0x57b168 in std.heap.CAllocator.resize (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/heap.zig:150:9: 0x57b168 in std.heap.CAllocator.resize (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/os.zig:1375:23: 0x5bb073 in std.os.openatZ (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/fs.zig:1479:25: 0x656b5c in std.fs.Dir.openDirFlagsZ (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/fs.zig:1449:13: 0x595329 in std.fs.Dir.openDirZ (zigmod-x86_64-linux)
/zig-linux-x86_64-0.9.0-dev.946+6237dc0ab/lib/std/fs.zig:1396:13: 0x594854 in std.fs.Dir.openDir (zigmod-x86_64-linux)
/home/circleci/zigmod/src/common.zig:212:79: 0x5b049a in .zigmod.common.get_module_from_dep (zigmod-x86_64-linux)
/home/circleci/zigmod/src/common.zig:66:13: 0x5afedd in .zigmod.common.collect_deps (zigmod-x86_64-linux)
/home/circleci/zigmod/src/common.zig:39:27: 0x5acff0 in .zigmod.common.collect_deps_deep (zigmod-x86_64-linux)
/home/circleci/zigmod/src/cmd/fetch.zig:28:24: 0x583ea2 in .zigmod.cmd.fetch.execute (zigmod-x86_64-linux)
/home/circleci/zigmod/src/main.zig:50:13: 0x57e58b in main (zigmod-x86_64-linux)

It tries to open .zigmod/deps where there isn't one.

@nektro
Copy link
Owner

nektro commented Sep 30, 2021

does it behave any different if you use - src: system_lib raylib3

@nektro
Copy link
Owner

nektro commented Dec 3, 2021

was not able to reproduce this. what is the value you get when you run zigmod version ?

@iacore
Copy link
Author

iacore commented Dec 17, 2021

I downloaded zigmod from https://github.com/nektro/zigmod/releases/tag/v87.

How to reproduce: create an empty directory with a single file zig.mod with the content I gave you, then run zigmod fetch.

@nektro
Copy link
Owner

nektro commented Dec 25, 2021

was able to reproduce and found a fix

@nektro nektro closed this as completed in e3bc7fc Dec 25, 2021
nektro added a commit that referenced this issue Dec 25, 2021

Unverified

This user has not yet uploaded their public signing key.
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

No branches or pull requests

2 participants