Closed awsl-dbq closed 2 years ago
https://github.com/sql-machine-learning/sqlflow/blob/develop/go/model/model.go#L182 https://github.com/sql-machine-learning/sqlflow/blob/develop/go/model/model.go#L210
The code
cmd := exec.Command("tar", "czf", "-", "-C", m.workDir, ".")
It's better to use the go
"archive/tar" "compress/gzip"
API
sometimes redirect to stdin "-" is not work for some environment
https://github.com/sql-machine-learning/sqlflow/blob/develop/go/model/model.go#L182 https://github.com/sql-machine-learning/sqlflow/blob/develop/go/model/model.go#L210
The code
It's better to use the go
API
sometimes redirect to stdin "-" is not work for some environment