Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3758)

Issue 76780043: worker/uniter: explicit LookPath for hooks

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by axw
Modified:
10 years, 1 month ago
Reviewers:
jameinel, mp+211247
Visibility:
Public.

Description

worker/uniter: explicit LookPath for hooks Go 1.3/tip changes os/exec.Command such that it conditionally calls LookPath, based on whether or not the specified path in is absolute. Since this differs across versions, I have simply changed our code to explicitly call LookPath all the time. No tests changed; an existing test failed with Go tip, and I verified the change fixes it. Fixes lp:1293310 https://code.launchpad.net/~axwalk/juju-core/lp1293310-non-existent-hooks/+merge/211247 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M worker/uniter/context.go View 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 2
axw
Please take a look.
10 years, 1 month ago (2014-03-17 05:58:15 UTC) #1
jameinel
10 years, 1 month ago (2014-03-17 06:04:48 UTC) #2
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b