diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7b12d4..2e48fdd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@v2 with: - go-version: 1.15.x + go-version: 1.16.x - uses: actions/cache@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3d3f43..218974d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@v2 with: - go-version: 1.15.x + go-version: 1.16.x - uses: actions/cache@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d45484..f545512 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@v2 with: - go-version: 1.15.x + go-version: 1.16.x - uses: actions/cache@v1 with: diff --git a/go.mod b/go.mod index 78723e9..f78ee94 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/aerokube/cm -go 1.15 +go 1.16 require ( github.com/Masterminds/semver/v3 v3.0.1 diff --git a/selenoid/docker.go b/selenoid/docker.go index 49031bc..a1bb1c9 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -325,6 +325,10 @@ func (c *DockerConfigurator) IsConfigured() bool { } func (c *DockerConfigurator) Configure() (*SelenoidConfig, error) { + err := c.createConfigDir() + if err != nil { + return nil, fmt.Errorf("failed to create output directory: %v", err) + } if c.BrowsersJson != "" { return c.syncWithConfig() } @@ -334,10 +338,6 @@ func (c *DockerConfigurator) Configure() (*SelenoidConfig, error) { if err != nil { return nil, fmt.Errorf("failed to marshal json: %v", err) } - err = c.createConfigDir() - if err != nil { - return nil, fmt.Errorf("failed to create output directory: %v", err) - } return &cfg, ioutil.WriteFile(getSelenoidConfigPath(c.ConfigDir), data, 0644) }