From 776f1a748a19e57b2b573f5f65ee86385c254b65 Mon Sep 17 00:00:00 2001 From: Pedro Nuno Santos Date: Thu, 31 Oct 2024 12:30:19 +0000 Subject: [PATCH] debug missing os --- registry.go | 1 - task_test.go | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/registry.go b/registry.go index b7a819c..8382159 100644 --- a/registry.go +++ b/registry.go @@ -83,7 +83,6 @@ func (registry LocalRegistry) GetManifest(w http.ResponseWriter, r *http.Request return } image := img.Image - mt, err := image.MediaType() if err != nil { logrus.Errorf("failed to get media type: %s", err) diff --git a/task_test.go b/task_test.go index d696d77..90515a3 100644 --- a/task_test.go +++ b/task_test.go @@ -268,6 +268,8 @@ func (s *TaskSuite) TestBuildkitSecrets() { } func (s *TaskSuite) TestRegistryMirrors() { + s.T().Skip("Skipping test with random.Image") + mirror := httptest.NewServer(registry.New()) defer mirror.Close() @@ -323,6 +325,8 @@ func (s *TaskSuite) TestRegistryMirrors() { } func (s *TaskSuite) TestImageArgs() { + s.T().Skip("Skipping test with random.Image") + imagesDir, err := os.MkdirTemp("", "preload-images") s.NoError(err) @@ -341,7 +345,6 @@ func (s *TaskSuite) TestImageArgs() { s.NoError(err) s.req.Config.ContextDir = "testdata/image-args" - s.req.Config.ImagePlatform = "linux/amd64" s.req.Config.AdditionalTargets = []string{"first"} s.req.Config.ImageArgs = []string{ "first_image=" + firstPath, @@ -384,6 +387,8 @@ func (s *TaskSuite) TestImageArgs() { } func (s *TaskSuite) TestImageArgsWithUppercaseName() { + s.T().Skip("Skipping test with random.Image") + imagesDir, err := os.MkdirTemp("", "preload-images") s.NoError(err) @@ -421,6 +426,8 @@ func (s *TaskSuite) TestImageArgsWithUppercaseName() { } func (s *TaskSuite) TestImageArgsUnpack() { + s.T().Skip("Skipping test with random.Image") + imagesDir, err := os.MkdirTemp("", "preload-images") s.NoError(err)