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

Azure support breaks Solaris compatibility #6324

Closed
fazalmajid opened this issue Sep 12, 2019 · 8 comments
Closed

Azure support breaks Solaris compatibility #6324

fazalmajid opened this issue Sep 12, 2019 · 8 comments

Comments

@fazalmajid
Copy link
Contributor

fazalmajid commented Sep 12, 2019

local64 ~/go>go get github.com/gohugoio/hugo
# github.com/Azure/azure-storage-blob-go/azblob
src/github.com/Azure/azure-storage-blob-go/azblob/highlevel.go:144:7: undefined: mmf
src/github.com/Azure/azure-storage-blob-go/azblob/highlevel.go:146:12: undefined: newMMF
src/github.com/Azure/azure-storage-blob-go/azblob/highlevel.go:275:13: undefined: newMMF

I have zero interest in Azure, and this is breaking my SmartOS hosted environment. Is there a way to disable Azure support in Hugo at compile time?

@bep bep added the Bug label Sep 12, 2019
@bep bep added this to the v0.59 milestone Sep 12, 2019
@bep
Copy link
Member

bep commented Sep 12, 2019

Is there a way to disable Azure support in Hugo at compile time?

Currently, no. But we should at least make sure to turn it off for unsupported platforms.

You're the first Hugo user on Solaris I've heard of. I thought we had a bug in file watching on Solaris (in fsnotify)

/cc @vangent

https://github.com/Azure/azure-storage-blob-go/blob/8a1deeeabe0a24f918d29630ede0da2a1c8f3b2f/azblob/zc_mmf_unix.go#L12

@vangent
Copy link
Contributor

vangent commented Sep 12, 2019

It looks like the Azure library is working on this already:

@bep bep added the Upstream label Sep 12, 2019
@fazalmajid
Copy link
Contributor Author

fazalmajid commented Sep 12, 2019

@bep Yes, it helps me feel special and unique that way :-)

The fsnotify issue fsnotify/fsnotify#196 is not a problem, I've been running Hugo on SmartOS since I converted over from WP two years ago. Then again I don't use Hugo in watch mode.

Would you be OK if I restructured deploy/deploy.go with build tags so Go Cloud Azure BLOB support isn't built on Solaris? There's no actual code, the Azure support is entirely done as a side-effect of importing the module, just as with database/sql DB-specific drivers, so it could be as simple as adding a deploy/deploy_azure.go that imports the module and has !solaris build tags.

@bep
Copy link
Member

bep commented Sep 12, 2019

@fazalmajid sure, I'll merge that. We can possibly revisit this later at some point.

I have had my share of Solaris (Sun) use myself in my work life, and I liked it a lot.

bep pushed a commit that referenced this issue Sep 13, 2019
@bep bep modified the milestones: v0.59, v0.60 Oct 21, 2019
@bep bep modified the milestones: v0.60, v0.61, v0.62 Nov 25, 2019
@bep bep modified the milestones: v0.62, v0.63 Dec 11, 2019
@bep bep modified the milestones: v0.63, v0.64 Jan 22, 2020
@bep bep modified the milestones: v0.64, v0.65 Jan 30, 2020
@bep bep modified the milestones: v0.65, v0.66 Feb 18, 2020
@bep bep modified the milestones: v0.66, v0.67 Mar 2, 2020
@bep bep modified the milestones: v0.67, v0.68 Mar 9, 2020
@bep bep modified the milestones: v0.68, v0.69 Mar 20, 2020
@bep bep removed this from the v0.69 milestone Apr 8, 2020
@bep bep modified the milestones: v0.113.0, v0.114.0, v0.115.0 Jun 8, 2023
@bep bep modified the milestones: v0.115.0, v0.116.0 Jun 30, 2023
@bep bep modified the milestones: v0.116.0, v0.117.0 Aug 1, 2023
@bep bep modified the milestones: v0.117.0, v0.118.0 Aug 30, 2023
@bep bep modified the milestones: v0.118.0, v0.119.0 Sep 15, 2023
@bep bep modified the milestones: v0.119.0, v0.120.0 Oct 4, 2023
@bep bep modified the milestones: v0.120.0, v0.121.0 Oct 31, 2023
@bep bep modified the milestones: v0.121.0, v0.122.0 Dec 6, 2023
@bep bep modified the milestones: v0.122.0, v0.123.0, v0.124.0 Jan 27, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 4, 2024
@jmooring
Copy link
Member

jmooring commented Apr 8, 2024

Azure/azure-storage-blob-go#117 was merged on 23 June 2020. Can anyone confirm that this issue is resolved?

@fazalmajid
Copy link
Contributor Author

fazalmajid commented Apr 8, 2024

I can confirm I can build Hugo@latest on my SmartOS (Illumos) box, using Go 1.20.6. I'm not seeing Azure packages in the log, however, only a bunch of AWS and Google ones.

To be frank, I use build tags to avoid the cloud provider libraries bloat in my Hugo builds, even if I host on AWS CloudFront. I use rclone to push instead and a small custome binary to invalidate the cache.

@jmooring jmooring closed this as completed Apr 8, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants