Repository: gohugoio/hugo (language: go)

Issue:
Extended build fails with new Xcode 14.1 on MacOS
<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Hugo are you using (`hugo version`)?

<pre>
$ hugo version

hugo v0.107.0-dc44bca963b0035818d4521b73c39af63db3a230+extended darwin/arm64 BuildDate=2022-12-02T11:13:34Z

</pre>

### Does this issue reproduce with the latest release?
No

To reproduce pull the latest changes from Hugo master branch and then try compiling on macOS with:
`env GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -tags extended -o $HOME/bin` or similar.

The compiling fails with the following console message:

```
go: downloading github.com/bep/godartsass v0.15.0
go: downloading google.golang.org/protobuf v1.28.1
# github.com/bep/golibsass/internal/libsass
In file included from json.cpp:2:
../../../go/pkg/mod/github.com/bep/golibsass@v1.1.0/internal/libsass/../../libsass_src/src/json.cpp:1289:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'

```



Discussion / hints:
For now I have set Xcode to “Continue building after errors“ :.

![](https://i.stack.imgur.com/VfAck.png)

The above deprecation shipped with the recently released Xcode 14.1

Are you sure that the build actually fails (what is the output of `echo $?` after a build)? It's rather odd that they then call it a compiler _warning_.
Hello,

I am seeing empty output when I execute `echo` right after the above stream of Xcode errors. 

Also the timestamp of the Hugo build remains unchanged.

For example I tried building from source just now [@ 14:10 pm EET+2] and the timestamp of the hugo binary is 11:13 am EET+2:
```
hugo v0.107.0-dc44bca963b0035818d4521b73c39af63db3a230+extended darwin/arm64 BuildDate=2022-12-02T11:13:34Z
``` 



~~P.S. Also the above post I made about tweaking Xcode settings has no effect. I got confused because I succesully built the plain Hugo version.~~

~~It is not possible to build Hugo Extended as of now in macOS Ventura with Xcode 14.1, so I guess I will start using the release binaries.~~ 

**EDIT 18 JAN 2023**

The [above workaround](https://github.com/gohugoio/hugo/issues/10491#issuecomment-1336124047) works perfectly and it is what I have been using since I opened this issue to build Hugo from source on macOS Ventura.

Fix patch:
diff --git a/go.mod b/go.mod
index d494ee7eb39..e18f4eaf059 100644
--- a/go.mod
+++ b/go.mod
@@ -11,7 +11,7 @@ require (
 	github.com/bep/gitmap v1.1.2
 	github.com/bep/goat v0.5.0
 	github.com/bep/godartsass v0.16.0
-	github.com/bep/golibsass v1.1.0
+	github.com/bep/golibsass v1.1.1
 	github.com/bep/gowebp v0.2.0
 	github.com/bep/lazycache v0.2.0
 	github.com/bep/overlayfs v0.6.0
diff --git a/go.sum b/go.sum
index 50f1ea6a77a..24510c1baf0 100644
--- a/go.sum
+++ b/go.sum
@@ -177,6 +177,8 @@ github.com/bep/godartsass v0.16.0 h1:nTpenrZBQjVSjLkCw3AgnYmBB2czauTJa4BLLv448qg
 github.com/bep/godartsass v0.16.0/go.mod h1:6LvK9RftsXMxGfsA0LDV12AGc4Jylnu6NgHL+Q5/pE8=
 github.com/bep/golibsass v1.1.0 h1:pjtXr00IJZZaOdfryNa9wARTB3Q0BmxC3/V1KNcgyTw=
 github.com/bep/golibsass v1.1.0/go.mod h1:DL87K8Un/+pWUS75ggYv41bliGiolxzDKWJAq3eJ1MA=
+github.com/bep/golibsass v1.1.1 h1:xkaet75ygImMYjM+FnHIT3xJn7H0xBA9UxSOJjk8Khw=
+github.com/bep/golibsass v1.1.1/go.mod h1:DL87K8Un/+pWUS75ggYv41bliGiolxzDKWJAq3eJ1MA=
 github.com/bep/gowebp v0.2.0 h1:ZVfK8i9PpZqKHEmthQSt3qCnnHycbLzBPEsVtk2ch2Q=
 github.com/bep/gowebp v0.2.0/go.mod h1:ZhFodwdiFp8ehGJpF4LdPl6unxZm9lLFjxD3z2h2AgI=
 github.com/bep/helpers v0.4.0 h1:ab9veaAiWY4ST48Oxp5usaqivDmYdB744fz+tcZ3Ifs=


Test patch: