Skip to content

Inclusion of --build-dir in args breaks recursive walk#66

Merged
davglass merged 1 commit intoyui:masterfrom
andrewnicols:shifter-66
Mar 20, 2013
Merged

Inclusion of --build-dir in args breaks recursive walk#66
davglass merged 1 commit intoyui:masterfrom
andrewnicols:shifter-66

Conversation

@andrewnicols
Copy link
Contributor

I've just updated to the latest build of shifter and tried to build against our code and found that the --recursive argument is now broken. It seems to have been broken since 0.2.16.

When running --recursively, the build directory used to be relative to the src directory, but it is now relative to the location that Shifter is run from.

@andrewnicols
Copy link
Contributor Author

I think that the breakage is related to #46 (Make the build output directory configurable) which made the build directory configurable but always relative to the CWD.

Obviously having a build directory relative to CWD breaks where you have a distributed set of src directories to build from. I guess if --recursive is specified, then it should continue to be relative.

@andrewnicols
Copy link
Contributor Author

It seems that there are two ways to fix this:

  • setting --build-dir=./ when running; or
  • not setting a default build-dir when recursive is true.

@andrewnicols
Copy link
Contributor Author

Bah - apologies, I misread my build diff, that doesn't do the right thing still.

@andrewnicols
Copy link
Contributor Author

Sorry - too me a while to work out how to attach a pull request to an existing issue.

@davglass
Copy link
Member

I don't think this solves the problem, I'll look into it next week.

When running recursively, the src directories are spread throughout a
directory structure and the build directories need to be relative to their
prospective src directories.
@andrewnicols
Copy link
Contributor Author

I've removed the version number change and repushed - sorry about that.

Let me know if there's anything I can do to help.

Andrew

@andrewnicols
Copy link
Contributor Author

Hi Dav,

I don't suppose you've had a chance to look at this further?

Cheers,

Andrew

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

Successfully merging this pull request may close these issues.

2 participants