Skip to content
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
81b6fd7
Implement submodule initialization in CloneRepo
bjornrobertsson Dec 9, 2025
5de553d
Add GitCloneSubmodules option for cloning
bjornrobertsson Dec 9, 2025
adbdccf
Fix typo in environment variables documentation entry
bjornrobertsson Dec 9, 2025
18384d5
Fix submodule handling in git
bjornrobertsson Dec 9, 2025
4d3e529
Fix submodule handling in README
bjornrobertsson Dec 9, 2025
e183aff
Update README.md
bjornrobertsson Dec 9, 2025
2d1df11
Add ResolveSubmoduleURLForTest function
bjornrobertsson Dec 9, 2025
5407a5b
Add tests for ResolveSubmoduleURL and CloneOptions
bjornrobertsson Dec 9, 2025
463fd91
Add tests for new environment variables in CLI
bjornrobertsson Dec 9, 2025
04f798b
make gen
bjornrobertsson Dec 11, 2025
db5e40d
Rename ResolveSubmoduleURLForTest to ResolveSubmoduleURL
bjornrobertsson Jan 22, 2026
223d3e4
Add integration test for git submodules
bjornrobertsson Jan 22, 2026
5c59408
Change GitCloneSubmodules to accept depth (true/false/integer)
bjornrobertsson Jan 23, 2026
8134964
Add tests for submodule depth values
bjornrobertsson Jan 23, 2026
442477e
Remove submodule section from README (belongs in release notes)
bjornrobertsson Jan 23, 2026
fb31cac
Fix typo: dev.zaure.com -> dev.azure.com
bjornrobertsson Jan 23, 2026
68ace4b
Fix formatting (gofmt alignment)
bjornrobertsson Jan 23, 2026
149ae9a
Fix git_test.go: use SubmoduleDepth int instead of Submodules bool
bjornrobertsson Jan 23, 2026
3f81838
Update golden file for CLI output test
bjornrobertsson Jan 23, 2026
ea25253
Merge branch 'main' into 74-git-submodule-support
bjornrobertsson Feb 3, 2026
cb11759
Fix: assign repo from CloneContext (was discarded after merge)
bjornrobertsson Feb 3, 2026
76138b0
Merge branch 'main' into 74-git-submodule-support
johnstcn Feb 6, 2026
79d1fc5
Merge branch 'main' into 74-git-submodule-support
johnstcn Feb 6, 2026
92783ef
Add RedactURL to prevent credential leakage in logs
bjornrobertsson Feb 17, 2026
92f5137
Security: only forward auth to submodules on same host
bjornrobertsson Feb 17, 2026
6f87394
Improve submodule test: create proper gitlink and verify clone
bjornrobertsson Feb 17, 2026
ad64adf
Document SCP-like URL limitation for relative submodules
bjornrobertsson Feb 18, 2026
334ade4
Update issue link to #492
bjornrobertsson Feb 18, 2026
e371318
Fix RedactURL: avoid URL-encoding of *** characters
bjornrobertsson Feb 18, 2026
afcce7f
Fix RedactURL: check SCP-like URLs before url.Parse
bjornrobertsson Feb 18, 2026
b82aee0
Fix RedactURL: handle IPv6 URLs correctly
bjornrobertsson Feb 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests for new environment variables in CLI
Adding tests for Submodules and two missing
  • Loading branch information
bjornrobertsson authored Dec 9, 2025
commit 463fd91614440d3bf14602d97c93bbd5b347226d
19 changes: 19 additions & 0 deletions options/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ func TestEnvOptionParsing(t *testing.T) {
require.False(t, o.GitCloneSingleBranch)
require.True(t, o.GitCloneThinPack)
})

t.Run("remote repo build mode", func(t *testing.T) {
t.Setenv(options.WithEnvPrefix("REMOTE_REPO_BUILD_MODE"), "true")
o := runCLI()
require.True(t, o.RemoteRepoBuildMode)
})

t.Run("binary path", func(t *testing.T) {
const val = "/usr/local/bin/envbuilder"
t.Setenv(options.WithEnvPrefix("BINARY_PATH"), val)
o := runCLI()
require.Equal(t, o.BinaryPath, val)
})

t.Run("git clone submodules", func(t *testing.T) {
t.Setenv(options.WithEnvPrefix("GIT_CLONE_SUBMODULES"), "true")
o := runCLI()
require.True(t, o.GitCloneSubmodules)
})
})
}

Expand Down
Loading