Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove io/ioutil package dependency #92

Closed
wants to merge 1 commit into from
Closed

Remove io/ioutil package dependency #92

wants to merge 1 commit into from

Conversation

austinvazquez
Copy link
Contributor

@austinvazquez austinvazquez commented Aug 30, 2022

Issue #, if available:

Description of changes:
Package io/ioutil deprecated since Go 1.16
Reference: https://go.dev/doc/go1.16#ioutil

Requires #93

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Austin Vazquez [email protected]

@austinvazquez austinvazquez requested a review from a team as a code owner August 30, 2022 06:35
@ginglis13
Copy link

Looks like we are having the same issue here re pinned dependencies, specifically ltag again as was the case addressed by this PR on the firecracker-go-sdk firecracker-microvm/firecracker-go-sdk#445

options.go Outdated Show resolved Hide resolved
Package io/ioutil deprecated since Go 1.16
Reference: https://go.dev/doc/go1.16#ioutil

Signed-off-by: Austin Vazquez <[email protected]>
@@ -244,7 +243,7 @@ func (opts *options) handleFifos() (io.Writer, error) {
}

if generateFifoFilename || generateMetricFifoFilename {
dir, err := ioutil.TempDir(os.TempDir(), "fcfifo")
dir, err := os.MkdirTemp("", "fcfifo")
Copy link
Contributor

@Kern-- Kern-- Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These replacements were introduced in go 1.16 and we claim to be able to build as far back as 1.14.

I think buildkite is currently on 1.15 so we would need to update that before merging this and remove go 1.14 and 1.15 from the GHA build matrix. Since firectl is a binary I think we can be a bit more aggressive in updating the go versions than the go sdk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #95 to capture thoughts on this.

@austinvazquez austinvazquez closed this by deleting the head repository Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants