DongTai icon indicating copy to clipboard operation
DongTai copied to clipboard

[Bug]: Not support go version < 1.16beta1

Open zzzskd opened this issue 3 years ago • 0 comments

Preflight Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • [X] I am not looking for support or already pursued the available support channels without success.

Version

1.8.2

Installation Type

Official Docker Compose

Service Name

Doc(DongTai-Doc)

Describe the details of the bug and the steps to reproduce it

  1. Go Agent Guide ,the guide says to support Go1.12+
  2. But Go agent uses io/fs: service/auxiliarylt18.go, service/auxiliarylt18.go
  3. io/fs only supports >=1.16beta1 io/fs image

Env:

go version go1.12.1 linux/amd64

Steps:

  1. import dependencies
    _ "github.com/HXSecurity/DongTai-agent-go/run/base"
    _ "github.com/HXSecurity/DongTai-agent-go/run/http"
    
  2. run
go mod init dongtai_test
go mod tidy
go run -gcflags "all=-N -l" app.go
  1. get error
    build command-line-arguments: cannot load io/fs: cannot find module providing package io/fs
    

Additional Information

No response

Logs

No response

zzzskd avatar Jul 26 '22 09:07 zzzskd