flutter - 忽略在 pubspec.yaml 中找不到资产的文件或变体
问题描述
我正在尝试对拉取请求运行颤振测试,并且我在 lib 目录中有 .env 文件,我 git 忽略但在 Github 操作上尝试运行作业时出现此错误。因为在里面pubspec.yaml
它被列为资产。我知道为什么会出现错误,但我不知道如何告诉pubspec.yaml
忽略该文件,因为它对其正在执行的作业没有影响。
解决方案
create a script that creates the file with the data and execute the bash script before running flutter test.
推荐阅读
- javascript - 找不到 TypeScript 自定义定义文件
- asp.net - Asp.net mvc 5 身份 smtp 连接
- c++ - 如何在 if 语句中放入二维字符串数组?
- c# - 多线程挂起UI?
- reactjs - 创建 React App (不弹出) & ANTD Design & SCSS & Create App Rewired config
- c# - Roslyn - 如果添加了尾随琐事,则 SyntaxNode “消失”
- sql - 视图的顺序是否有保证?
- spring - 从 org.springframework.web.reactive.function.BodyInserter 获取请求正文
- mule - Mule Quartz - 除每月第一天外的所有工作日的 Cron
- php - 使用php的文件完整路径位置