mirror of
https://github.com/docker/docs.git
synced 2026-04-01 00:38:52 +07:00
stop targets dir being created, we don't use it
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
@@ -214,7 +214,7 @@ func (r *NotaryRepository) Initialize(uCryptoService *cryptoservice.UnlockedCryp
|
||||
r.tufRepoPath,
|
||||
"metadata",
|
||||
"json",
|
||||
"targets",
|
||||
"",
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -425,7 +425,7 @@ func (r *NotaryRepository) bootstrapRepo() error {
|
||||
r.tufRepoPath,
|
||||
"metadata",
|
||||
"json",
|
||||
"targets",
|
||||
"",
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -511,7 +511,7 @@ func (r *NotaryRepository) bootstrapClient() (*tufclient.Client, error) {
|
||||
filepath.Join(r.tufRepoPath, "cache"),
|
||||
"metadata",
|
||||
"json",
|
||||
"targets",
|
||||
"",
|
||||
)
|
||||
if err != nil {
|
||||
cache = store.NewMemoryStore(nil, nil)
|
||||
|
||||
@@ -87,7 +87,6 @@ func testInitRepo(t *testing.T, rootType data.KeyAlgorithm) {
|
||||
filepath.Join("trusted_certificates", filepath.FromSlash(gun)),
|
||||
"tuf",
|
||||
filepath.Join("tuf", filepath.FromSlash(gun), "metadata"),
|
||||
filepath.Join("tuf", filepath.FromSlash(gun), "targets"),
|
||||
}
|
||||
for _, dir := range expectedDirs {
|
||||
fi, err := os.Stat(filepath.Join(tempBaseDir, dir))
|
||||
|
||||
Reference in New Issue
Block a user