Skip to content

Commit

Permalink
fix: create repo for package
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 5, 2024
1 parent 9f45c94 commit eb5570e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/backend/src/api/hex_repo.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ fn create_archive(
archive: BitArray,
) {
let slug = package_slug(name, version) <> ".tar"
let filepath = archives_path <> "/" <> name <> "/" <> slug
let package_path = archives_path <> "/" <> name
let _ = simplifile.create_directory_all(package_path)
let filepath = package_path <> "/" <> slug
let _ = simplifile.write_bits(filepath, archive)
archive
}
Expand Down

0 comments on commit eb5570e

Please sign in to comment.