Skip to content

Fix writing rendered manifests to files#3152

Merged
tejal29 merged 1 commit intoGoogleContainerTools:masterfrom
nkubala:fix-render
Nov 1, 2019
Merged

Fix writing rendered manifests to files#3152
tejal29 merged 1 commit intoGoogleContainerTools:masterfrom
nkubala:fix-render

Conversation

@nkubala
Copy link
Copy Markdown
Contributor

@nkubala nkubala commented Nov 1, 2019

before this change, trying to run skaffold render --output file.txt would fail with

FATA[0001] rendering manifests: opening file for writing manifests: open file.txt: no such file or directory

this was happening because we were trying to do an os.Open() on a file that didn't exist. now, we'll just do an os.OpenFile() with the right opening mode, and just call file.WriteString() rather than creating a new Writer.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 1, 2019

Codecov Report

Merging #3152 into master will decrease coverage by <.01%.
The diff coverage is 40%.

Impacted Files Coverage Δ
pkg/skaffold/deploy/kubectl.go 63.97% <40%> (-0.21%) ⬇️

@tejal29 tejal29 merged commit a73727d into GoogleContainerTools:master Nov 1, 2019
@nkubala nkubala deleted the fix-render branch November 4, 2019 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants