如何解决警告:CRLF将由Ubuntu上的LF问题取代
最近,我开始使用Tableau仪表板。我首先从tableau界面下载了Tableau工作簿(.twbx),然后编写了一个脚本,该脚本有助于通过API发布仪表板。
因此,每当我要在Unix系统上通过git将此未压缩的工作簿文件夹推入时。 它会引发以下警告
warning: CRLF will be replaced by LF in scripts/tableau/Fit.twbx.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in scripts/tableau/Fit/Data/Extracts/federated_0su8t1k1es5468150761q0.hyper.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in scripts/tableau/Fit/Fit.twb.
The file will have its original line endings in your working directory.
我还尝试了以下选项来摆脱这种情况。
-
git config --global core.autocrlf input
- 在
.gitattributes
文件中添加了此内容:*.twb eol=crlf
,*.hyper eol=crlf
上述选项对我来说无法防止警告。
因此,每当我打算通过API发布仪表板时,在服务器上发布仪表板时都会抛出以下错误。
"error": "unable to drop database \"hyper.file:Fitda43d2e571dd4ae982a54915b1408e0c/Data/Extracts/federated_0su8t1k1es5468150761q0.hyper\": file is truncated: expected file size 262144,actual file size 262142\nContext: 0x5fdfad59
由于此字节丢失,我无法在服务器上发布仪表板。
请帮助我摆脱这个问题。
注意:将解压缩的文件夹直接放在服务器上时,它可以正常工作。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。