Skip to content

Commit

Permalink
[7.x](backport #27543) [automation] Update go release version 1.17.1 (#…
Browse files Browse the repository at this point in the history
…28335)

* Update go release version 1.17.1 (#27543)

* format of conditional build tags has changed
* matching of * in regexes was fixed, thus breaking some of our code: golang/go#46123
* iproute package was missing from the new Golang Docker image, thus, we had to add it for our tests
* go.mod file contains separate require directive for transitive dependencies

(cherry picked from commit e6839ab)

* Fix build tags for Go 1.17 (#28338)

* additional fixes

* Disable generator tests temporarily (#28362)

* Fix docker import generator for 1.17.1 (#28374)

* Fix liblogparser

* Update go.mod

* update notice

Co-authored-by: apmmachine <[email protected]>
Co-authored-by: Aleksandr Maus <[email protected]>
Co-authored-by: Noémi Ványi <[email protected]>
Co-authored-by: Noémi Ványi <[email protected]>
Co-authored-by: Alex K <[email protected]>
Co-authored-by: Marc Guasch <[email protected]>
  • Loading branch information
7 people authored Oct 14, 2021
1 parent f441b50 commit 83e3223
Show file tree
Hide file tree
Showing 825 changed files with 6,523 additions and 129,213 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.16.6
1.17.1
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix `logstash` module when `xpack.enabled: true` is set from emitting redundant events. {pull}22808[22808]
- Change vsphere.datastore.capacity.used.pct value to betweeen 0 and 1. {pull}23148[23148]
- `beat` module respects `basepath` config option. {pull}28162[28162]
- Fix list_docker.go {pull}28374[28374]

*Packetbeat*

Expand Down
3 changes: 2 additions & 1 deletion Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ projects:
- "auditbeat"
- "deploy/kubernetes"
- "filebeat"
- "generator"
# temporarly disable generator tests: https://github.com/elastic/beats/issues/28361
# - "generator"
- "heartbeat"
- "journalbeat"
- "libbeat"
Expand Down
134,448 changes: 5,432 additions & 129,016 deletions NOTICE.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion auditbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.6
FROM golang:1.17.1

RUN \
apt-get update \
Expand All @@ -7,6 +7,7 @@ RUN \
python3-pip \
python3-venv \
librpm-dev \
iproute2 \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --upgrade pip==20.1.1
Expand Down
1 change: 1 addition & 0 deletions auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build mage
// +build mage

package main
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/auditd/audit_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !linux
// +build !linux

package auditd
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/auditd/golden_files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux
// +build linux

package auditd
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/eventreader_fsevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build darwin
// +build darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/eventreader_fsnotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux || freebsd || openbsd || netbsd || windows
// +build linux freebsd openbsd netbsd windows

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/eventreader_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !linux && !freebsd && !openbsd && !netbsd && !windows && !darwin
// +build !linux,!freebsd,!openbsd,!netbsd,!windows,!darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileinfo_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build freebsd || openbsd || netbsd || darwin
// +build freebsd openbsd netbsd darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileinfo_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux
// +build linux

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileinfo_other_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileinfo_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux || freebsd || openbsd || netbsd || darwin
// +build linux freebsd openbsd netbsd darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileinfo_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
// +build windows

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileorigin_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build darwin
// +build darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileorigin_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !darwin
// +build !darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/fileorigin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build darwin
// +build darwin

package file_integrity
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/monitor/filetree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package monitor
Expand Down
1 change: 1 addition & 0 deletions auditbeat/module/file_integrity/monitor/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package monitor
Expand Down
1 change: 1 addition & 0 deletions dev-tools/cmd/asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build ignore
// +build ignore

package main
Expand Down
1 change: 1 addition & 0 deletions dev-tools/mage/keychain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build darwin
// +build darwin

package mage
Expand Down
1 change: 1 addition & 0 deletions dev-tools/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build mage
// +build mage

package main
Expand Down
1 change: 1 addition & 0 deletions dev-tools/packaging/preference-pane/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build mage
// +build mage

package main
Expand Down
2 changes: 1 addition & 1 deletion filebeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.6
FROM golang:1.17.1

RUN \
apt-get update \
Expand Down
1 change: 1 addition & 0 deletions filebeat/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package config
Expand Down
1 change: 1 addition & 0 deletions filebeat/fileset/compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package fileset
Expand Down
1 change: 1 addition & 0 deletions filebeat/fileset/fileset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package fileset
Expand Down
1 change: 1 addition & 0 deletions filebeat/fileset/modules_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build integration
// +build integration

package fileset
Expand Down
1 change: 1 addition & 0 deletions filebeat/fileset/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package fileset
Expand Down
1 change: 1 addition & 0 deletions filebeat/fileset/pipelines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package fileset
Expand Down
1 change: 1 addition & 0 deletions filebeat/harvester/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package harvester
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/container/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package container
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/default-inputs/inputs_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows && !linux
// +build !windows,!linux

package inputs
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/docker/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package docker
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/glob_other_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/glob_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
// +build windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/identifier_inode_deviceid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/identifier_inode_deviceid_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
// +build windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/identifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/identifier_test_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
// +build windows

package file
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/file/states_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !integration
// +build !integration

package file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build integration
// +build integration

package filestream
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/filestream/filestream_test_non_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package filestream
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/filestream/fswatch_test_non_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package filestream
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/filestream/identifier_inode_deviceid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package filestream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
// +build windows

package filestream
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/filestream/identifier_test_non_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
// +build !windows

package filestream
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/filestream/input_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build integration
// +build integration

package filestream
Expand Down
Loading

0 comments on commit 83e3223

Please sign in to comment.