diff options
| author | 2025-11-05 21:58:38 +0100 | |
|---|---|---|
| committer | 2025-11-17 14:12:41 +0100 | |
| commit | d0c551acb5ab79efafd325f5b19c76a3de835356 (patch) | |
| tree | ba9462cdc5081015fbd6bf5d98d9f39334d13207 /vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh | |
| parent | [performance] when transforming media, perform read operations of large files... (diff) | |
| download | gotosocial-d0c551acb5ab79efafd325f5b19c76a3de835356.tar.xz | |
[chore] update dependencies (#4542)
- github.com/minio/minio-go/v7: v7.0.95 -> v7.0.97
- github.com/ncruces/go-sqlite3: v0.29.1 -> v0.30.0
- github.com/tdewolff/minify/v2: v2.24.5 -> v2.24.6
- codeberg.org/gruf/go-mmap: fixes build for BSD platforms
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4542
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh')
| -rw-r--r-- | vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh b/vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh new file mode 100644 index 000000000..ab67bfae9 --- /dev/null +++ b/vendor/codeberg.org/gruf/go-mmap/copy_fill_stat.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +for file in "$(go env GOROOT)"/src/os/stat_{linux,netbsd,openbsd,freebsd}.go; do + cp "$file" . + name="$(basename "$file")" + sed -i "./${name}" -E -e 's|package os|package mmap|' \ + -e 's|internal/filepathlite|path|' \ + -e 's|filepathlite|path|g' \ + -e 's| FileMode| os.FileMode|g' \ + -e 's| Mode| os.Mode|g' \ + -e 's| FileInfo| os.FileInfo|g' + gofmt -w "./${name}"; goimports -w "./${name}" +done |
