pax_global_header 0000666 0000000 0000000 00000000064 14515140000 0014500 g ustar 00root root 0000000 0000000 52 comment=cfc9c4f277ea6ec18de92444b31983b183deb4fb
fsnotify-1.7.0/ 0000775 0000000 0000000 00000000000 14515140000 0013346 5 ustar 00root root 0000000 0000000 fsnotify-1.7.0/.circleci/ 0000775 0000000 0000000 00000000000 14515140000 0015201 5 ustar 00root root 0000000 0000000 fsnotify-1.7.0/.circleci/config.yml 0000664 0000000 0000000 00000004304 14515140000 0017172 0 ustar 00root root 0000000 0000000 version: 2.1
workflows:
main:
jobs: ['linux-arm64', 'ios']
jobs:
# linux/arm64
linux-arm64:
machine:
image: ubuntu-2204:2022.07.1
resource_class: arm.medium
working_directory: ~/repo
steps:
- checkout
- run:
name: install-go
command: |
sudo apt -y install golang
- run:
name: test
command: |
uname -a
go version
FSNOTIFY_BUFFER=4096 go test -parallel 1 -race ./...
go test -parallel 1 -race ./...
# iOS
ios:
macos:
xcode: 13.4.1
working_directory: ~/repo
steps:
- checkout
- run:
name: install-go
command: |
export HOMEBREW_NO_AUTO_UPDATE=1
brew install go
- run:
name: test
environment:
SCAN_DEVICE: iPhone 6
SCAN_SCHEME: WebTests
command: |
export PATH=$PATH:/usr/local/Cellar/go/*/bin
uname -a
go version
FSNOTIFY_BUFFER=4096 go test -parallel 1 -race ./...
go test -parallel 1 -race ./...
# This is just Linux x86_64; also need to get a Go with GOOS=android, but
# there aren't any pre-built versions of that on the Go site. Idk, disable for
# now; number of people using Go on Android is probably very tiny, and the
# number of people using Go with this lib smaller still.
# android:
# machine:
# image: android:2022.01.1
# working_directory: ~/repo
# steps:
# - checkout
# - run:
# name: install-go
# command: |
# v=1.19.2
# curl --silent --show-error --location --fail --retry 3 --output /tmp/go${v}.tgz \
# "https://go.dev/dl/go$v.linux-arm64.tar.gz"
# sudo tar -C /usr/local -xzf /tmp/go${v}.tgz
# rm /tmp/go${v}.tgz
# - run:
# name: test
# command: |
# uname -a
# export PATH=/usr/local/go/bin:$PATH
# go version
# FSNOTIFY_BUFFER=4096 go test -parallel 1 -race ./...
# go test -parallel 1 -race ./...
#
fsnotify-1.7.0/.cirrus.yml 0000664 0000000 0000000 00000000737 14515140000 0015465 0 ustar 00root root 0000000 0000000 freebsd_task:
name: 'FreeBSD'
freebsd_instance:
image_family: freebsd-13-2
install_script:
- pkg update -f
- pkg install -y go
test_script:
# run tests as user "cirrus" instead of root
- pw useradd cirrus -m
- chown -R cirrus:cirrus .
- FSNOTIFY_BUFFER=4096 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./...
- sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./...
fsnotify-1.7.0/.editorconfig 0000664 0000000 0000000 00000000304 14515140000 0016020 0 ustar 00root root 0000000 0000000 root = true
[*.go]
indent_style = tab
indent_size = 4
insert_final_newline = true
[*.{yml,yaml}]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
fsnotify-1.7.0/.gitattributes 0000664 0000000 0000000 00000000032 14515140000 0016234 0 ustar 00root root 0000000 0000000 go.sum linguist-generated
fsnotify-1.7.0/.github/ 0000775 0000000 0000000 00000000000 14515140000 0014706 5 ustar 00root root 0000000 0000000 fsnotify-1.7.0/.github/FUNDING.yml 0000664 0000000 0000000 00000000017 14515140000 0016521 0 ustar 00root root 0000000 0000000 github: arp242
fsnotify-1.7.0/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14515140000 0017071 5 ustar 00root root 0000000 0000000 fsnotify-1.7.0/.github/ISSUE_TEMPLATE/bug.yml 0000664 0000000 0000000 00000002464 14515140000 0020377 0 ustar 00root root 0000000 0000000 ---
name: 'Bug report'
description: 'Create a bug report'
labels: ['bug']
body:
- type: 'textarea'
validations: {"required": true}
attributes:
label: 'Describe the bug'
placeholder: 'A clear and concise description of what the bug is: expected behaviour, observed behaviour, etc.'
- type: 'textarea'
validations: {"required": true}
attributes:
label: 'To Reproduce'
placeholder: 'Please provide the FULL code to reproduce the problem (something that can be copy/pasted and run without having to write additional code) and any additional steps that are needed.'
- type: 'textarea'
validations: {"required": true}
attributes:
label: 'Which operating system and version are you using?'
description: |
```
Linux: lsb_release -a
macOS: sw_vers
Windows: systeminfo | findstr /B /C:OS
BSD: uname -a
```
- type: 'input'
validations: {"required": true}
attributes:
label: 'Which fsnotify version are you using?'
- type: 'dropdown'
validations: {"required": true}
attributes:
label: 'Did you try the latest main branch?'
description: 'Please try the latest main branch as well, with e.g.:
`go get github.com/fsnotify/fsnotify@main`'
options: ['No', 'Yes']
fsnotify-1.7.0/.github/ISSUE_TEMPLATE/other.md 0000664 0000000 0000000 00000000210 14515140000 0020525 0 ustar 00root root 0000000 0000000 ---
name: 'Other'
about: "Anything that's not a bug such as feature requests, questions, etc."
title: ''
labels: ''
assignees: ''
---
fsnotify-1.7.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14515140000 0016743 5 ustar 00root root 0000000 0000000 fsnotify-1.7.0/.github/workflows/Vagrantfile.debian6 0000664 0000000 0000000 00000000220 14515140000 0022431 0 ustar 00root root 0000000 0000000 Vagrant.configure("2") do |config|
config.vm.box = "threatstack/debian6"
config.vm.box_version = "1.0.0"
config.vm.define 'debian6'
end
fsnotify-1.7.0/.github/workflows/build.yml 0000664 0000000 0000000 00000002563 14515140000 0020573 0 ustar 00root root 0000000 0000000 name: 'build'
on:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
push:
branches: ['main', 'aix']
jobs:
cross-compile:
strategy:
fail-fast: false
matrix:
go: ['1.17', '1.21']
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: build
run: |
for a in $(go tool dist list); do
export GOOS=${a%%/*}
export GOARCH=${a#*/}
case "$GOOS" in
(android|ios) exit 0 ;; # Requires cgo to link.
(js) exit 0 ;; # No build tags in internal/ TODO: should maybe fix?
(openbsd)
case "$GOARCH" in
# Fails with:
# golang.org/x/sys/unix.syscall_syscall9: relocation target syscall.syscall10 not defined
# golang.org/x/sys/unix.kevent: relocation target syscall.syscall6 not defined
# golang.org/x/sys/unix.pipe2: relocation target syscall.rawSyscall not defined
# ...
# Works for me locally though, hmm...
(386) exit 0 ;;
esac
esac
go test -c
go build ./cmd/fsnotify
done
fsnotify-1.7.0/.github/workflows/staticcheck.yml 0000664 0000000 0000000 00000001723 14515140000 0021756 0 ustar 00root root 0000000 0000000 name: 'staticcheck'
on:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
push:
branches: ['main', 'aix']
jobs:
staticcheck:
name: 'staticcheck'
runs-on: ubuntu-latest
steps:
- id: install_go
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: "1.19.x"
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-staticcheck
path: |
${{ runner.temp }}/staticcheck
${{ steps.install_go.outputs.GOCACHE || '' }}
- run: |
export STATICCHECK_CACHE="${{ runner.temp }}/staticcheck"
go install honnef.co/go/tools/cmd/staticcheck@latest
$(go env GOPATH)/bin/staticcheck -matrix <