Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Jess Frazelle 5f403365fc replace versionInworkspace() stub
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-05 18:17:43 -08:00
Andrew Gerrand 4c96093bae Remove done TODO 2016-12-06 12:29:05 +11:00
Andrew Gerrand 3de97a9136 Rename determineProjectRoot to splitAbsoluteProjectRoot
This more accurately describes what it does.
Also rename the enigmatic 'p' to 'root'.

Fix #30
2016-12-06 12:29:05 +11:00
Andrew Gerrand a100628437 Detect presence of Manfiest and Lock files more gracefully
Lose a big block of indentation. 😍
2016-12-06 12:29:05 +11:00
Jess Frazelle 2a22ec839e
fix small vet errors
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-02 17:09:32 -08:00
Jess Frazelle 5f7ff20f8f
replace stub isStdLib()
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-02 15:44:00 -08:00
sam boyer d6112ff033 dep: minor comment touchups 2016-12-01 23:37:10 -05:00
sam boyer 40e737c269 dep: trim project root from pkg lists in lock 2016-12-01 23:25:37 -05:00
sam boyer 91c13df8b0 dep: bugfixes in dft; add needed data to stubs 2016-12-01 23:24:16 -05:00
sam boyer f6e21b0707 dep: search workspace for transitive deps in init
This introduces a depth-first traversal of the import graph; gps can't
help, because we're exploring a GOPATH workspace, which gps explicitly
does not do.
2016-12-01 22:32:25 -05:00
Jess Frazelle a979af53ba
Start of handing transitive deps
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-01 17:49:33 -08:00
sam boyer abc04039c3 dep: fix stat err handling, rename stub 2016-12-01 09:02:17 -05:00
sam boyer 9c6897b49f dep: add license header to init.go 2016-12-01 08:45:33 -05:00
sam boyer 7b1fbdb305 dep: helper func to convert gps.Lock to dep's lock 2016-12-01 01:22:44 -05:00
sam boyer 93547bb7f4 dep: write a basically correct lock on init
init now creates a provisional lock file from the version information it
inferred while scanning the workspace. The provisional lock is used to
bootstrap a solve run that will:

 * Retain the versions given in the provisional lock
 * Pick versions for any direct deps that were in the import graph, but
   not found in the workspace
 * Pull in and pick versions for any needed transitive deps according to
   the rules in dep's analyzer (currently very dumb)

This logic relies on another new stub function to handle the huge
variety of failures that solving can have; that's going to be a
significant and ongoing area of work.

We're still not writing out the vendor directory just yet, though that
should be just one more gps function call.
2016-11-30 21:05:22 -05:00
sam boyer 2a31b1625b dep: write a basically correct manifest on init
init now scans the code tree of the project it is init-ing and attempts
to make a sane determination about what constraint it should apply for
each non-stdlib project root it encounters.

This adds another handwavy stub method - this one for figuring out what
version of code is currently on disk - but it illustrates intent, and we
can fix that later.
2016-11-30 21:04:59 -05:00
Edward Muller 6962530dd1 Simplify findProjectRoot
This is mostly the non controversial changes from #11, plus a more to
the std lib stub function.
2016-11-30 08:33:56 -08:00
Edward Muller eca15972f7 Dedent some of the logic 2016-11-29 18:15:20 -08:00
Edward Muller b2dcedc733 Write out basic raw manifest
This is incomplete, but starting to work towards something real
2016-11-29 18:08:27 -08:00
Edward Muller f1d53bf453 Write a blank manifest 2016-11-29 18:08:27 -08:00
Edward Muller b32b8a36e4 Move init to its own file 2016-11-29 18:08:23 -08:00