actonlang / acton

The Acton Programming Language
https://www.acton-lang.org/
BSD 3-Clause "New" or "Revised" License
80 stars 7 forks source link

`acton pkg add` corrupts build.act.json #1908

Closed plajjan closed 2 months ago

plajjan commented 2 months ago
kll@Boxy:~/dt/bar$ cat build.act.json 
{
    "dependencies": {
        "foo": {
        "path": "../foo"
        }
    },
    "zig_dependencies": {}
}
kll@Boxy:~/dt/bar$ acton pkg add https://github.com/actonlang/foo/archive/refs/heads/main.zip foo
Updated existing dependency foo with new hash 1220cd47344f8a1e7fe86741c7b0257a63567b4c17ad583bddf690eedd672032abdd  (old None )
kll@Boxy:~/dt/bar$ cat build.act.json 
{
    "dependencies": {
        "foo": {
            "hash": "1220cd47344f8a1e7fe86741c7b0257a63567b4c17ad583bddf690eedd672032abdd"
        }
    },
    "zig_dependencies": {}
}
kll@Boxy:~/dt/bar$