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

Update all the things! #125

Merged
merged 15 commits into from
May 16, 2022
Merged

Update all the things! #125

merged 15 commits into from
May 16, 2022

Conversation

mmlb
Copy link
Contributor

@mmlb mmlb commented May 10, 2022

Description

Updates all the things that we use in hook (except the kernel). This sort of started because of #105 where tests failed because of latest make lint which wanted go1.17 and we've been wanting to update to that anyway and well here we are.

Why is this needed

I was rebasing #105 and noticed that I had a bunch of non-Makefile stuff there including some stuff I hadn't pushed yet (go update). So I broke it out to this PR instead.

How Has This Been Tested?

make lint works, and make dev does too.

How are existing users impacted? What migration steps/scripts do we need?

Nicer looking code.

mmlb and others added 6 commits May 10, 2022 16:29
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Mostly just for visibility into timing.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
I couldn't figure out a max line length and so decided one-sentence-per-line.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@mmlb mmlb mentioned this pull request May 10, 2022
3 tasks
@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

README.md Outdated
[osie]: https://github.com/tinkebell/osie
[sandbox]: https://github.com/tinkerbell/sandbox
[specification]: https://github.com/linuxkit/linuxkit/blob/master/docs/yaml.md
[tinkerbe]: https://tinkerbell.org
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be fixed now @ScottGarman, ptal

@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

mmlb and others added 5 commits May 16, 2022 13:25
Avoids repitition and long lines.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
mmlb added 4 commits May 16, 2022 13:25
With fixes from tinkerbell/lint-install#40 applied manually.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Still builds, so :shipit: I guess...?

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
@@ -130,6 +130,8 @@ func downloadFile(filepath string, url string) error {
if err == nil {
break
}
resp.Body.Close()
Copy link

Choose a reason for hiding this comment

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

G104: Errors unhandled.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@mmlb mmlb removed the request for review from thebsdbox May 16, 2022 17:37
@mmlb mmlb added the ready-to-merge Signal to Mergify to merge the PR. label May 16, 2022
@mergify mergify bot merged commit 029ef8f into tinkerbell:main May 16, 2022
@mmlb mmlb deleted the update-all-the-things branch May 16, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants