refactor: Reshuffle file structure for better code layout
This gets rid of the package called "server" and instead moves everything into the project root, such that Go actually builds us a binary called `nixery`. This is the first step towards factoring out CLI-based functionality for Nixery.
This commit is contained in:
parent
df88da126a
commit
2b82f1b71a
21 changed files with 83 additions and 114 deletions
|
|
@ -175,7 +175,7 @@ func fetchNarInfo(i *item) (string, error) {
|
|||
narinfo, err := ioutil.ReadAll(resp.Body)
|
||||
|
||||
// best-effort write the file to the cache
|
||||
ioutil.WriteFile("popcache/" + i.hash, narinfo, 0644)
|
||||
ioutil.WriteFile("popcache/"+i.hash, narinfo, 0644)
|
||||
|
||||
return string(narinfo), err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue