Skip to content

Commit

Permalink
fixing the error repo = Repo.new value
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhvath28 committed Jun 18, 2024
1 parent fe4b601 commit 14cd6c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 47 deletions.
45 changes: 0 additions & 45 deletions shard.lock

This file was deleted.

20 changes: 20 additions & 0 deletions shards.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
spectator = {
url = "https://gitlab.com/arctic-fox/spectator.git";
rev = "v0.10.5";
sha256 = "1fgjz5vg59h4m25v4fjklimcdn62ngqbchm00kw1160ggjpgpzw2";
};
version_from_shard = {
url = "https://github.com/hugopl/version_from_shard.git";
rev = "v1.2.5";
sha256 = "0xizj0q4rd541rwjbx04cjifc2gfx4l5v6q2y7gmd0ndjmkgb8ik";
};
carbon_smtp_adapter = {
hg = "https://hg.sr.ht/~peterhoeg/dummy";
rev = "v0.1.1";
sha256 = "0kdb0k1xzl4yysfmlif7xmr2mnb3y5f3knqr8dy08f3sq9n31x4z";

}
}


4 changes: 2 additions & 2 deletions src/worker.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module Crystal2Nix
def run
File.open SHARDS_NIX, "w+" do |file|
file.puts %({)
ShardLock.from_yaml(File.read(@lock_file)).shards.each do |key, value|
repo = Repo.new value
ShardLock.from_yaml(File.read(@lock_file)).shards.each do |key, shard|
repo = Repo.new(shard.url, shard.rev)
if repo.nil?
STDERR.puts "Unable to parse repository entry"
exit 1
Expand Down

0 comments on commit 14cd6c5

Please sign in to comment.