Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge precondition message: Term or type in lib #4985

Closed
Tracked by #4928
aryairani opened this issue May 20, 2024 · 1 comment
Closed
Tracked by #4928

merge precondition message: Term or type in lib #4985

aryairani opened this issue May 20, 2024 · 1 comment

Comments

@aryairani
Copy link
Contributor

aryairani commented May 20, 2024

Term or type in lib

By convention, lib can only namespaces; each of these represents a library dependencies. Individual terms and types are not allowed at the top level of lib.

Alice's branch:

lib.foo : Nat
lib.foo = 1

Bob's branch:

bob : Nat
bob = 100
project/alice> merge /bob

  On project/alice, there's a type or term directly in the `lib`
  namespace, but I expected only library dependencies to be in
  there. Please remove it before merging.


Sorry, I wasn't able to perform the merge:

Onproject/alice, there's type or term at the top level of the lib namespace, where I only expect to find subnamespaces representing library dependencies.

Please move or remove it and then try merging again.

@aryairani
Copy link
Contributor Author

I think this was done in #5032 also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant