Skip to content

Commit

Permalink
Resolve conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacknz committed Oct 17, 2023
1 parent 65bd306 commit 7222e6c
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 150 deletions.
4 changes: 0 additions & 4 deletions .go-version
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
<<<<<<< HEAD
1.19.12
=======
1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
33 changes: 0 additions & 33 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ linters-settings:

gosimple:
# Select the Go version to target. The default is '1.13'.
<<<<<<< HEAD
go: "1.19.12"
=======
go: "1.20.6"
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
Expand All @@ -124,31 +120,19 @@ linters-settings:

staticcheck:
# Select the Go version to target. The default is '1.13'.
<<<<<<< HEAD
go: "1.19.12"
=======
go: "1.20.6"
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
checks: ["all"]

stylecheck:
# Select the Go version to target. The default is '1.13'.
<<<<<<< HEAD
go: "1.19.12"
=======
go: "1.20.6"
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
# Disabled:
# ST1005: error strings should not be capitalized
checks: ["all", "-ST1005"]

unused:
# Select the Go version to target. The default is '1.13'.
<<<<<<< HEAD
go: "1.19.12"
=======
go: "1.20.6"
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

gosec:
excludes:
Expand All @@ -157,20 +141,3 @@ linters-settings:
- G401 # Detect the usage of DES, RC4, MD5 or SHA1: Used in non-crypto contexts.
- G501 # Import blocklist: crypto/md5: Used in non-crypto contexts.
- G505 # Import blocklist: crypto/sha1: Used in non-crypto contexts.
<<<<<<< HEAD
=======

prealloc:
# IMPORTANT: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.

# Report pre-allocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# Default: true
simple: false
# Report pre-allocation suggestions on range loops.
# Default: true
range-loops: true
# Report pre-allocation suggestions on for loops.
# Default: false
for-loops: true
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
47 changes: 0 additions & 47 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ Vagrant.configure("2") do |config|
c.vm.provision "shell", inline: $unixProvision, privileged: false
end

<<<<<<< HEAD
config.vm.define "archlinux", autostart: false do |c|
c.vm.box = "archlinux/archlinux"
c.vm.network :forwarded_port, guest: 22, host: 2239, id: "ssh", auto_correct: true
Expand All @@ -329,50 +328,4 @@ Vagrant.configure("2") do |config|
c.vm.provision "shell", inline: linuxGvmProvision, privileged: false
c.vm.provision "shell", inline: "pacman -Sy && pacman -S --noconfirm make gcc python python-pip git"
end
=======
config.vm.define "beats" do |nodeconfig|
nodeconfig.vm.box = "ubuntu/jammy64"

# We deliberately set a fully-qualified domain name for the VM; it helps
# test the FQDN feature flag.
nodeconfig.vm.hostname = "beats-dev.elastic.dev.internal"

nodeconfig.vm.network "private_network",
hostname: true,
ip: "192.168.56.44" # only 192.168.56.0/21 range allowed: https://www.virtualbox.org/manual/ch06.html#network_hostonly
nodeconfig.vm.network "forwarded_port",
guest: 4244,
host: 4244,
id: "delve"

nodeconfig.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false
vb.customize ["modifyvm", :id, "--vram", "128"]
# Customize the amount of memory on the VM:
vb.memory = "4096"
end

nodeconfig.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y \
build-essential \
curl \
delve \
make \
unzip
vim \
wget
curl -sL -o /tmp/go#{GO_VERSION}.linux-amd64.tar.gz https://go.dev/dl/go#{GO_VERSION}.linux-amd64.tar.gz
tar -C /usr/local -xzf /tmp/go#{GO_VERSION}.linux-amd64.tar.gz
curl -sL -o /tmp/mage_1.15.0_Linux-64bit.tar.gz https://github.com/magefile/mage/releases/download/v1.15.0/mage_1.15.0_Linux-64bit.tar.gz
tar -C /tmp -xf /tmp/mage_1.15.0_Linux-64bit.tar.gz
mv /tmp/mage /usr/local/bin/mage
echo "alias ll='ls -la'" > /etc/profile.d/ll.sh
echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/go.sh
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> /etc/profile.d/go.sh
SHELL
end

>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
end
4 changes: 0 additions & 4 deletions auditbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

RUN \
apt-get update \
Expand Down
5 changes: 0 additions & 5 deletions dev-tools/mage/gotest.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,9 @@ func GoTest(ctx context.Context, params GoTestArgs) error {
coverToHTML := sh.RunCmd("go", "tool", "cover",
"-html="+params.CoverageProfileFile,
"-o", htmlCoverReport)
<<<<<<< HEAD
if err = coverToHTML(); err != nil {
return errors.Wrap(err, "failed to write HTML code coverage report")
=======

if err := coverToHTML(); err != nil {
return fmt.Errorf("failed to write HTML code coverage report: %w", err)
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
}
}

Expand Down
23 changes: 0 additions & 23 deletions filebeat/input/syslog/rfc5424_parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions heartbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

RUN \
apt-get update \
Expand Down
6 changes: 0 additions & 6 deletions libbeat/docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<<<<<<< HEAD
:stack-version: 7.17.14
:doc-branch: 7.17
:go-version: 1.19.12
=======
:stack-version: 8.10.0
:doc-branch: main
:go-version: 1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
:release-state: unreleased
:python: 3.7
:docker: 1.12
Expand Down
4 changes: 0 additions & 4 deletions metricbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

RUN \
apt update \
Expand Down
4 changes: 0 additions & 4 deletions metricbeat/module/http/_meta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

COPY test/main.go main.go

Expand Down
4 changes: 0 additions & 4 deletions metricbeat/module/nats/_meta/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ ARG NATS_VERSION=2.0.4
FROM nats:$NATS_VERSION

# build stage
<<<<<<< HEAD
FROM golang:1.19.12 AS build-env
=======
FROM golang:1.20.6 AS build-env
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
RUN apt-get install git mercurial gcc
RUN git clone https://github.com/nats-io/nats.go.git /nats-go
RUN cd /nats-go/examples/nats-bench && git checkout tags/v1.10.0 && go build .
Expand Down
4 changes: 0 additions & 4 deletions packetbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

RUN \
apt-get update \
Expand Down
4 changes: 0 additions & 4 deletions x-pack/functionbeat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
FROM golang:1.19.12
=======
FROM golang:1.20.6
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))

RUN \
apt-get update \
Expand Down
4 changes: 0 additions & 4 deletions x-pack/metricbeat/module/stan/_meta/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ ARG STAN_VERSION=0.15.1
FROM nats-streaming:$STAN_VERSION

# build stage
<<<<<<< HEAD
FROM golang:1.19.12 AS build-env
=======
FROM golang:1.20.6 AS build-env
>>>>>>> a278734f11 (upgrade Go to 1.20.6 (#36000))
RUN apt-get install git mercurial gcc
RUN git clone https://github.com/nats-io/stan.go.git /stan-go
RUN cd /stan-go/examples/stan-bench && git checkout tags/v0.5.2 && go build .
Expand Down

0 comments on commit 7222e6c

Please sign in to comment.