Skip to content

pkg/mount: fix compile failure on Windows (move linux-only stubs0#41637

Closed
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:fix_windows_compile
Closed

pkg/mount: fix compile failure on Windows (move linux-only stubs0#41637
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:fix_windows_compile

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Fixes the compile failure introduced in #41458, but somehow didn't cause Windows CI to report a failure 😞 #41458 (comment)

For reference: I didn't look too closely if we're now stubbing all functions that were previously available on Windows; we're planning on removing these stubs altogether, and most of these should not be called on Windows (as they were non-functional or produced an error)

@thaJeztah
Copy link
Copy Markdown
Member Author

@cpuguy83 @AkihiroSuda @TBBle ptal

@thaJeztah thaJeztah added this to the 20.10.0 milestone Nov 5, 2020
@TBBle
Copy link
Copy Markdown
Contributor

TBBle commented Nov 5, 2020

I have almost the same change sitting here, except I moved the non-Windows things into a deprecated_unix.go to match the sysmount package they wrap.

Anyway, this LGTM, assuming CI passes now. I'm still looking into why the failing unit tests didn't fail the pipeline...

Oops, another one to fix:

[2020-11-05T11:58:49.159Z] pkg\system\rm_test.go:62:12: undefined: mount.Mount

@thaJeztah
Copy link
Copy Markdown
Member Author

I have almost the same change sitting here, except I moved the non-Windows things into a deprecated_unix.go to match the sysmount package they wrap.

If you have a branch with those changes; feel free to push as a PR, and I'll close this one 👍

Oops, another one to fix:

Ah boo! My IDE didn't show up that one 😞

@thaJeztah
Copy link
Copy Markdown
Member Author

(these stubs are mostly to provide a slightly smoother transition for users to switch to the new location, and we don't plan to continue maintaining them after 20.10, as mentioned)

@TBBle
Copy link
Copy Markdown
Contributor

TBBle commented Nov 5, 2020

I don't have those changes pushed in a PR yet (I just did them locally while waiting for Jenkins), since I'm trying to validate my "fix the false-pass" changes first. But I'm happy to carry that through, and fix the other failure too. Currently in #41636 but I would break out the CI/test fixes separately from that PR once I know they work.

@TBBle
Copy link
Copy Markdown
Contributor

TBBle commented Nov 5, 2020

I went ahead and pushed a PR to fix this, and the false-passes, in #41636

@thaJeztah
Copy link
Copy Markdown
Member Author

Would it be ok to move the last two commits to a separate? Think we should be able to move faster to keep the PR focussed on a single fix

/me ducks

@TBBle
Copy link
Copy Markdown
Contributor

TBBle commented Nov 5, 2020

Sorry, I linked the wrong PR. I meant #41638, which is just the CI fixes.

@thaJeztah
Copy link
Copy Markdown
Member Author

oh, thanks!

@thaJeztah
Copy link
Copy Markdown
Member Author

closing in favour of #41638

@thaJeztah thaJeztah closed this Nov 5, 2020
@thaJeztah thaJeztah deleted the fix_windows_compile branch November 5, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants