Skip to content

Conversation

@Mister-Meeseeks
Copy link
Contributor

@Mister-Meeseeks Mister-Meeseeks commented Jul 22, 2019

What changes were proposed in this pull request?

Change the format of the build command in the README to start with a ./ prefix

./build/mvn -DskipTests clean package

This increases stylistic consistency across the README- all the other commands have a ./ prefix. Having a visible ./ prefix also makes it clear to the user that the shell command requires the current working directory to be at the repository root.

How was this patch tested?

README.md was reviewed both in raw markdown and in the Github rendered landing page for stylistic consistency.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-28473][DOCUMENTATION]Stylistic consistency of build command in README [SPARK-28473][DOC] Stylistic consistency of build command in README Jul 22, 2019
To build Spark and its example programs, run:

build/mvn -DskipTests clean package
./build/mvn -DskipTests clean package
Copy link
Member

Choose a reason for hiding this comment

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

Could you find more instances, @Mister-Meeseeks ? For example, R/README.md also has this.

To enforce stylistic consistency and increase clarity for the user, shell
command examples in the docs were prepended with `./`. For example

    bin/spark-submit --jars ...

becomes

    ./bin/spark-submit --jars ...

This is the convention adhered to for most of the documentation already. This
commit converts the minority of examples that don't.

The `./` prefix is only added in the context of a specific instructional
command. When the docs are discussing in the context of a script, the prefix
is not included. For example "the `bin/spark-submit` script is used to launch
jobs" would *not* require the `./` prefix.
@Mister-Meeseeks
Copy link
Contributor Author

I scoured the documentation for offending examples. I believe I found and corrected every command example not conforming to the ./ prepended convention.

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Looks good if we can fix all of them consistently

@dongjoon-hyun
Copy link
Member

ok to test.

@SparkQA
Copy link

SparkQA commented Jul 23, 2019

Test build #108061 has finished for PR 25231 at commit 53d59fc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.
Thank you, @Mister-Meeseeks and @srowen .
Merged to master.

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.

4 participants