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

No local packages? #105

Open
jeffbdavenport opened this issue Jun 30, 2024 · 5 comments
Open

No local packages? #105

jeffbdavenport opened this issue Jun 30, 2024 · 5 comments

Comments

@jeffbdavenport
Copy link

I don't understand why it's impossible to add a local package? Seems like this to me is more important than remote packages, why is this preferred over Gyro which is way simpler to use and supports adding local packages pretty easily?

@nektro
Copy link
Owner

nektro commented Jun 30, 2024

there are indeed local packages https://github.com/nektro/zigmod/blob/master/docs/zig.mod.md#dep-src

@nektro
Copy link
Owner

nektro commented Jun 30, 2024

eg

dependencies:
  - src: local path/to/folder

@jeffbdavenport
Copy link
Author

Oh thank you. Hmm last time I tried this, it didn't work.

@jeffbdavenport
Copy link
Author

jeffbdavenport commented Jul 1, 2024

@nektro This does not work. zigmod fetch completely messes up the deps.zig with messed up characters with that set. If I try to fix the characters it still says module does not exist:

pub const package_data = struct {
    pub var _root = Package{
        .directory = dirs._root,
        .dependencies = &.{ &_kaxlt5olnjjv },
    };
    pub var _������������ = Package{
        .directory = dirs._������������,
        .import = .{ "../dungeon_weld", .{ .path = dirs._������������ ++ "/src/main.zig" } },
        .dependencies = &.{ },
    };
    pub var _kaxlt5olnjjv = Package{
        .directory = dirs._kaxlt5olnjjv,
        .dependencies = &.{ &_������������ },
    };
};
id: kaxlt5olnjjvva02l9c1fukv2j79ospasy0j1zprhb14tvfc
name: tower_of_embers
license: None
description: None
root_dependencies:
dependencies:
  - src: local ../dungeon_weld

@jeffbdavenport jeffbdavenport reopened this Jul 1, 2024
@nektro
Copy link
Owner

nektro commented Jul 1, 2024

thanks for the report. i know what change caused this.

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