Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Nov 17, 2022
1 parent 6a6f1d6 commit 2aa0b63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dependencies.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const LOCAL_REPO_NAME = "REPO"

function get_local_clone(
api::Forge, ci::CIService, repo::Union{GitHub.Repo,GitLab.Project};
api::Forge, ci::CIService, repo::Union{GitHub.Repo,GitLab.Project}; options
)
f = mktempdir()
url_with_auth = get_url_with_auth(api, ci, repo)
Expand Down
2 changes: 1 addition & 1 deletion src/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function main(

api, repo = get_api_and_repo(ci_cfg)

local_path = get_local_clone(api, ci_cfg, repo)
local_path = get_local_clone(api, ci_cfg, repo; options)

for subdir in options.subdirs
project_file = @mock joinpath(local_path, subdir, "Project.toml")
Expand Down
4 changes: 2 additions & 2 deletions test/dependencies.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@testset "get_local_clone" begin
apply([git_clone_patch, cd_patch]) do
options = CompatHelper.Options()
subdir = only(options.subdirs)
local_path = CompatHelper.get_local_clone(
GitForge.GitHub.GitHubAPI(; token=GitHub.Token("token")),
GitHubActions(),
GitHub.Repo(; full_name="foobar"),
GitHub.Repo(; full_name="foobar");
options,
)
@test local_path isa String
end
Expand Down

0 comments on commit 2aa0b63

Please sign in to comment.