Skip to content

Commit

Permalink
modify dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
youngfish42 committed Jan 2, 2024
1 parent a1c5bc1 commit ab6cc14
Show file tree
Hide file tree
Showing 3 changed files with 1,123 additions and 1,061 deletions.
4 changes: 3 additions & 1 deletion add_dependent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
go_mod += "require (\n"
# Add the dependencies
for link in github_links:
go_mod += f" {link} v0.0.0\n" # replace "v0.0.0" with the actual version if known
# Remove http:// or https:// from the URL
link = link.replace('http://', '').replace('https://', '')
go_mod += f" {link} v0.0.0 // indirect\n" # replace "v0.0.0" with the actual version if known
# End the require block
go_mod += ")\n"

Expand Down
Loading

0 comments on commit ab6cc14

Please sign in to comment.