- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
这是我关于如何让 lerna 在 Jenkins 中运行的一系列问题的一部分。
上一期:
lerna publish on Jenkins "git remote update" Fails "Could not read from remote repository."
> lerna publish --yes --cd-version=patch
lerna info version 3.0.0-beta.17
lerna info versioning independent
lerna ERR! Error: Command failed: git rev-list --left-right --count origin/heads/origin/master...heads/origin/master
lerna ERR! fatal: ambiguous argument 'origin/heads/origin/master...heads/origin/master': unknown revision or path not in the working tree.
lerna ERR! Use '--' to separate paths from revisions, like this:
lerna ERR! 'git <command> [<revision>...] -- [<file>...]'
lerna ERR!
lerna ERR!
lerna ERR! at makeError (/var/lib/jenkins/workspace/abide/node_modules/@lerna/child-process/node_modules/execa/index.js:169:9)
lerna ERR! at Function.module.exports.sync (/var/lib/jenkins/workspace/abide/node_modules/@lerna/child-process/node_modules/execa/index.js:338:15)
lerna ERR! at Object.execSync (/var/lib/jenkins/workspace/abide/node_modules/@lerna/child-process/index.js:21:16)
lerna ERR! at Object.isBehindUpstream (/var/lib/jenkins/workspace/abide/node_modules/@lerna/git-utils/index.js:209:48)
lerna ERR! at PublishCommand.initialize (/var/lib/jenkins/workspace/abide/node_modules/@lerna/publish/index.js:92:24)
lerna ERR! at Promise.resolve.then (/var/lib/jenkins/workspace/abide/node_modules/@lerna/command/index.js:228:24)
lerna ERR! lerna Command failed: git rev-list --left-right --count origin/heads/origin/master...heads/origin/master
lerna ERR! lerna fatal: ambiguous argument 'origin/heads/origin/master...heads/origin/master': unknown revision or path not in the working tree.
lerna ERR! lerna Use '--' to separate paths from revisions, like this:
lerna ERR! lerna 'git <command> [<revision>...] -- [<file>...]'
lerna ERR! lerna
lerna ERR! lerna
npm ERR! code ELIFECYCLE
npm ERR! errno 128
npm ERR! abide@1.0.0 publish: `lerna publish --yes --cd-version=patch`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the abide@1.0.0 publish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2018-04-24T05_32_38_890Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 128
npm ERR! abide@1.0.0 jenkins: `npm run versions && npm run test && npm run publish`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the abide@1.0.0 jenkins script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2018-04-24T05_32_38_901Z-debug.log
最佳答案
您必须在 monorepo 中进行初始提交才能使其正常工作。您还需要有一个干净的工作树:
$ git add *
$ git commit -m "bootstrap lerna"
如果您输入 git rev-parse HEAD
,该错误也会在存储库中发生。第一次提交后,您会发现这不再失败。
关于node.js - 勒纳致命 : ambiguous argument 'origin/heads/origin/master...heads/origin/master' : unknown revision or path not in the working tree,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49994148/
为什么我的重载成员函数只是“不明确”为 char 而不是 int 和 string? 我试图通过重载的 equals() 函数汇集代码,为我的 Char 类创建一个单代码路径。当我使用 equals
我阅读了以下重要问题:Attributes in C#并学到了很多关于属性的知识。 我正在使用一个使用多个属性的库。示例: [State] public class USStates { [C
令我惊讶的是,以下代码在 VS2005 中编译时没有出现任何问题,因为在实现中对 Bar() 的调用让我停下来想知道如何消除歧义。 class Foo { public: void Bar(int
考虑以下几点: struct A { A(int, int) { } }; struct B { B(A ) { } // (1) expl
假设我们有这段代码,是从一个单独的问题中复制过来的: namespace x { void f() { } class C { void f()
考虑 C 代码 a = a = a。没有用于分配的序列点,因此此代码在编译时会产生有关 a 上未定义操作的警告。 a 在这里可能有哪些值? a 似乎无法更改值。这里实际上有未定义的行为还是编译器只是懒
题目地址:https://leetcode.com/problems/ambiguous-coordinates/description/ 题目描述: Wehad some 2-dimension
这个问题在这里已经有了答案: ORA-00918: column ambiguously defined in SELECT * (4 个答案) 关闭 5 年前。 所以我这学期很难理解 SQL。我真
我对 git 还很陌生。目前我尝试按照本教程使用分支名称和版本覆盖我的应用程序的图标:http://www.merowing.info/2013/03/overlaying-application-v
我已经升级到Xcode 11和Swift 5,并且在通过框架提供方法扩展时遇到了一个问题。更具体地说,在一个结构如下的项目中: -> Main Project -> Framework created
我有这样的片段: template bool apply_impl(data_t * d) const { return this->Last::apply(*
以下数据库结构: 表 cms_pages 包含带有 id、名称、标题等的页面 表 cms_pagerows 包含具有 cms_page_id 和排名的行 (cms_page_id 上的唯一索引,排名)
我正在尝试使用以下代码创建一个客户列表以及他们购买的品牌。 brands 表包含品牌名称,customer_id 在 customers 表中。要链接它们,我必须通过 receipts 表(连接到 c
我收到错误 “Integrity constraint violation: 1052 Column 'restaurant_id' in where clause is ambiguous' in”
我有一个在页面中间有一个表格 View 的布局。我希望根据用户设备的屏幕尺寸任意调整表格 View 的大小。在 ascii 中: +-----------+ |some stuff | +------
我正在尝试创建一个可以帮助您计算商品销售税的应用程序。当然应用程序需要乘法但我一直遇到错误: "Type of expression is ambiguous without more context
我正在尝试使用以下类型别名来定义它来传递一个函数: typealias AuthFunction = (String, String, AuthDataResultCallback?) -> ()
我对继承有疑问。假设我有 4 节课:基类A,B类继承A,C类继承A,BC 类继承 B 和 C class A { public: void test() {
我正在尝试整理一些代码。 我有 16 个类,它们都有一些共同的功能,我用宏抽象了这些功能: #define COMMON4( CLASS, BASE, ASSIGN, CHECK ) \ ex
在接下来的代码中,在 _tmain(..) 中调用 D::f 时出现不明确的错误因为 B::f 覆盖了 A::f,所以 A::vtable 中指向 f 的指针指向 B::f。 1) 为什么编译器会给出
我是一名优秀的程序员,十分优秀!