Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Run compiler from the project directory #652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ssmccoy
Copy link

@ssmccoy ssmccoy commented Nov 3, 2016

In an attempt to solve issue #406, run the compiler instead of from
the package directory from the root of the project. Make all paths
passed to the compiler relative to the project root.

This appears to work, and the tests still pass; but it corrects the
output of compiler errors and they now appear with filenames relative
to the GB_PROJECT_DIR.

@ssmccoy
Copy link
Author

ssmccoy commented Nov 3, 2016

The failure appears to be unrelated to my change.

@ssmccoy
Copy link
Author

ssmccoy commented Nov 4, 2016

I'd love some feedback on this.

@davecheney
Copy link
Contributor

Hello,

I've fixed the build for the testing/testmain changes in Go 1.8, #657. Please rebase your change and push again.

Sorry for the delay, I've recently changed jobs.

Thanks

Dave

@davecheney
Copy link
Contributor

Sorry I haven't responded to this yet. Given the history of trying to fix
this in the past I'll need to find some time for a detailed review.

On Sat, Nov 5, 2016 at 6:32 AM, Scott S. McCoy [email protected]
wrote:

I'd love some feedback on this.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#652 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA2_JCUnMRZnetFnoWJAwpIcJmLDCks5q64g2gaJpZM4Ko7Wl
.

In an attempt to solve issue constabulary#406, run the compiler instead of from
the package directory from the root of the project. Make all paths
passed to the compiler relative to the project root.

This appears to work, and the tests still pass; but it corrects the
output of compiler errors and they now appear with filenames relative
to the `GB_PROJECT_DIR`.
@ssmccoy
Copy link
Author

ssmccoy commented Jan 31, 2017

@davecheney I am relatively certain this isn't solving for all use-cases, but we have been using in our project (under my fork of this project) since this PR was opened and, within the usecase of our project, it solves the problem for go sources without side-effect.

I think that a partial solution is probably better than no solution, since the behaviour of gb WRT compiler errors is a huge issue for adoption. We have the need to start adding assembler to our project build, and I will ensure that similar support is added for the assembler at that time.

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

Successfully merging this pull request may close these issues.

2 participants