Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Because "kpm pack" creates a copy of the sources in a subdirectory, subsequent compilations fail #183

Closed
victorhurdugaci opened this issue May 14, 2014 · 4 comments
Assignees
Milestone

Comments

@victorhurdugaci
Copy link
Contributor

This is not a bug, per se, but rather an error that I hit while doing something that I wasn't expecting to break my project. kpm pack should be side effect free.

  1. Create a new web project
  2. Run it from console ("k web")
  3. Go to the project folder
  4. Run "kpm pack"
  5. Repeat step 2

Expected: nothing unusual
Actual: app fails to compile because of ambiguous types - "kpm pack" copies all the sources in bin, which is a subfolder of the project's folder. When the app is dynamically compiled, all the sources are included, meaning that each source file (and the types in it) appear twice.

Here are a few options that I see:

  1. New projects have the bin folder in the source exclusion list
  2. The bin folder, by convention, is not traversed by the compiler

cc @mayurid I think this might impact what you guys are doing too

@davidfowl
Copy link
Member

This shouldn't happen anymore, we've added bin/ to the list of default excludes.

@davidfowl davidfowl added this to the CTP2 milestone May 26, 2014
@davidfowl davidfowl self-assigned this May 26, 2014
@davidfowl davidfowl added the bug label May 26, 2014
@davidfowl
Copy link
Member

Resolved in 8162950

@davidfowl
Copy link
Member

@victorhurdugaci can you verify?

@victorhurdugaci
Copy link
Contributor Author

It works fine now 👍

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

No branches or pull requests

2 participants