Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the current working dir as default first arg in 'link' binary #31510

Merged
merged 1 commit into from May 18, 2019

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented May 16, 2019

Q A
Branch? 3.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

I don't know how you work on symfony, but each time I face the same issue

  1. I go on lyrixx/symfony (my fork)
  2. I execute pwd and copy it
  3. I go to an application
  4. I paste the cwd + add /link and hit enter
  5. I got an error because I missed the "target"
  6. I replay the last command and add .

With this PR, I will save the last 2 items...

Event if it's a "new feature", I targeted 3.4.

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 3.4 is fine

@ro0NL
Copy link
Contributor

ro0NL commented May 16, 2019

I don't know how you work on symfony

  1. goto my project
  2. goto my fork; cd var/sf-src
  3. link ../..
  4. optionally go back to project; cd -

i think this change is fine. Perhaps check if we exec link in the symfony clone, then using the current working dir is unexpected, as it will link to itself (at least this part changes)

edit: not sure we have to care about that actually

@fabpot
Copy link
Member

fabpot commented May 18, 2019

Thank you @lyrixx.

@fabpot fabpot merged commit 6b76c36 into symfony:3.4 May 18, 2019
fabpot added a commit that referenced this pull request May 18, 2019
… binary (lyrixx)

This PR was merged into the 3.4 branch.

Discussion
----------

Use the current working dir as default first arg in 'link' binary

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

I don't know how you work on symfony, but each time I face the same issue

1. I go on lyrixx/symfony (my fork)
1. I execute `pwd` and copy it
1. I go to an application
1. I paste the cwd + add `/link` and hit enter
1. I got an error because I missed the "target"
1. I replay the last command and add ` .`

With this PR, I will save the last 2 items...

Event if it's a "new feature", I targeted 3.4.

Commits
-------

6b76c36 Use the current working dir as default first arg in 'link' binary
@lyrixx lyrixx deleted the link branch May 18, 2019 20:15
This was referenced May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants