mirror of https://github.com/sbt/sbt.git
Update CONTRIBUTING.md
This commit is contained in:
parent
b665b7ecee
commit
fcdbfcf4f4
|
|
@ -1,36 +1,99 @@
|
||||||
[Setup]: http://www.scala-sbt.org/release/docs/Getting-Started/Setup
|
[sbt-dev]: https://groups.google.com/d/forum/sbt-dev
|
||||||
|
[StackOverflow]: http://stackoverflow.com/tags/sbt
|
||||||
|
[Setup]: http://www.scala-sbt.org/release/docs/Getting-Started/Setup
|
||||||
|
[Issues]: https://github.com/sbt/sbt/issues
|
||||||
|
[sbt-dev]: https://groups.google.com/d/forum/sbt-dev
|
||||||
|
[subscriptions]: http://typesafe.com/how/subscription
|
||||||
|
[327]: https://github.com/sbt/sbt/issues/327
|
||||||
|
|
||||||
# Issues and Pull Requests
|
Issues and Pull Requests
|
||||||
|
========================
|
||||||
|
|
||||||
## New issues
|
When you find a bug in sbt we want to hear about it. Your bug reports play an important part in making sbt more reliable.
|
||||||
|
|
||||||
Please use the issue tracker to report confirmed bugs.
|
Effective bug reports are more likely to be fixed. These guidelines explain how to write such reports and pull requests.
|
||||||
Do not use it to ask questions.
|
|
||||||
If you are uncertain whether something is a bug, please ask on StackOverflow or the sbt-dev mailing list first.
|
|
||||||
|
|
||||||
When opening a new issue,
|
Preliminatries
|
||||||
|
--------------
|
||||||
|
|
||||||
* Please state the problem clearly and provide enough context.
|
- Make sure your sbt version is up to date.
|
||||||
+ Code examples and build transcripts are often useful when appropriately edited.
|
- Search [StackOverflow] and [Issues] to see whether your bug has already been reported.
|
||||||
+ Show error messages and stack traces if appropriate.
|
- Open one case for each problem.
|
||||||
* Minimize the problem to reduce non-essential factors. For example, dependencies or special environments.
|
- Proceed to the next steps for details.
|
||||||
* Include all relevant information needed to reproduce, such as the version of sbt and Scala being used.
|
|
||||||
|
|
||||||
|
Where to get help and/or file a bug report
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
sbt project uses GitHub issue as a publically visible todo list. Please open a GitHub issue only when asked to do so.
|
||||||
|
|
||||||
|
- If you need help with sbt, please ask on [StackOverflow] with the tag "sbt" and the name of the sbt plugin if any.
|
||||||
|
- If you run into an issue, have an enhancement idea, or a general discussion, bring it up to [sbt-dev] Google Group first.
|
||||||
|
- If you need faster response time, consider one of the [Typesafe subscriptions][subscriptions].
|
||||||
|
|
||||||
|
What to report
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The developers need three things from you: **steps**, **problems**, and **expectations**.
|
||||||
|
|
||||||
|
### Steps
|
||||||
|
|
||||||
|
The most important thing to remember about bug reporting is to clearly distinguish facts and opinions. What we need first is **the exact steps to reproduce your problems on our computers**. This is called *reproduction steps*, which is often shortened to "repro steps" or "steps." Describe your method of running sbt. Provide `build.sbt` that caused the problem and the version of sbt or Scala that was used. Provide sample Scala code if it's to do with incremental compilation. If possible, minimize the problem to reduce non-essential factors.
|
||||||
|
|
||||||
|
Repro steps are the most important part of a bug report. If we cannot reproduce the problem in one way or the other, the problem can't be fixed. Telling us the error messages is not enough.
|
||||||
|
|
||||||
|
### Problems
|
||||||
|
|
||||||
|
Next, describe the problems, or what *you think* is the problem. It might be "obvious" to you that it's a problem, but it could actually be an intentional behavior for some backward compatibility etc. For complication errors, include stack trace. More raw info the better.
|
||||||
|
|
||||||
|
### Expectations
|
||||||
|
|
||||||
|
Same as the problems. Describe what *you think* should've happened.
|
||||||
|
|
||||||
|
### Notes
|
||||||
|
|
||||||
|
Add an optional notes section to describe your analysis.
|
||||||
|
|
||||||
|
### Subject
|
||||||
|
|
||||||
|
The subject of the bug report doesn't matter. A more descriptive subject is certainly better, but a good subject really depends on the analysis of the problem, so don't worry too much about it. "StackOverflowError while name hashing is enabled" is good enough.
|
||||||
|
|
||||||
|
### Formatting
|
||||||
|
|
||||||
|
If possible, please format code or console outputs.
|
||||||
|
|
||||||
|
On Github it's:
|
||||||
|
|
||||||
|
```scala
|
||||||
|
name := "foo"
|
||||||
|
```
|
||||||
|
|
||||||
|
On StackOverflow, it's:
|
||||||
|
|
||||||
|
```
|
||||||
|
<!-- language: lang-scala -->
|
||||||
|
|
||||||
|
name := "foo"
|
||||||
|
```
|
||||||
|
|
||||||
|
Here's a simple sample case: [#327][327].
|
||||||
Finally, thank you for taking the time to report a problem.
|
Finally, thank you for taking the time to report a problem.
|
||||||
|
|
||||||
## Pull Requests
|
Pull Requests
|
||||||
|
-------------
|
||||||
|
|
||||||
Whether implementing a new feature, fixing a bug, or modifying documentation, please work against the latest development branch (currently, 0.13).
|
Whether implementing a new feature, fixing a bug, or modifying documentation, please work against the latest development branch (currently, 0.13).
|
||||||
Binary compatible changes will be backported to a previous series (currently, 0.12.x) at the time of the next stable release.
|
Binary compatible changes will be backported to a previous series (currently, 0.12.x) at the time of the next stable release.
|
||||||
See below for instructions on building sbt from source.
|
See below for instructions on building sbt from source.
|
||||||
|
|
||||||
## Documentation
|
Documentation
|
||||||
|
-------------
|
||||||
|
|
||||||
Documentation fixes and contributions are welcome.
|
Documentation fixes and contributions are welcome.
|
||||||
They are made via pull requests, as described in the previous section.
|
They are made via pull requests, as described in the previous section.
|
||||||
See below for details on getting sbt sources and modifying the documentation.
|
See below for details on getting sbt sources and modifying the documentation.
|
||||||
|
|
||||||
# Build from source
|
Build from source
|
||||||
|
=================
|
||||||
|
|
||||||
1. Install the current stable binary release of sbt (see [Setup]), which will be used to build sbt from source.
|
1. Install the current stable binary release of sbt (see [Setup]), which will be used to build sbt from source.
|
||||||
2. Get the source code.
|
2. Get the source code.
|
||||||
|
|
@ -73,7 +136,8 @@ See below for details on getting sbt sources and modifying the documentation.
|
||||||
|
|
||||||
4. If a project has `project/build.properties` defined, either delete the file or change `sbt.version` to `0.13.2-SNAPSHOT`.
|
4. If a project has `project/build.properties` defined, either delete the file or change `sbt.version` to `0.13.2-SNAPSHOT`.
|
||||||
|
|
||||||
## Building Documentation
|
Building Documentation
|
||||||
|
----------------------
|
||||||
|
|
||||||
The scala-sbt.org site documentation is built using sphinx and requires some external packages to be manually installed first:
|
The scala-sbt.org site documentation is built using sphinx and requires some external packages to be manually installed first:
|
||||||
|
|
||||||
|
|
|
||||||
2
LICENSE
2
LICENSE
|
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2008, 2009, 2010 Steven Blundy, Josh Cough, Mark Harrah, Stuart Roebuck, Tony Sloane, Vesa Vilhonen, Jason Zaugg
|
Copyright (c) 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
||||||
4
NOTICE
4
NOTICE
|
|
@ -1,5 +1,5 @@
|
||||||
Simple Build Tool
|
sbt
|
||||||
Copyright 2008, 2009, 2010 Mark Harrah, Jason Zaugg
|
Copyright (c) 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors.
|
||||||
Licensed under BSD-style license (see LICENSE)
|
Licensed under BSD-style license (see LICENSE)
|
||||||
|
|
||||||
Portions based on code from the Scala compiler. Portions of the Scala
|
Portions based on code from the Scala compiler. Portions of the Scala
|
||||||
|
|
|
||||||
32
README.md
32
README.md
|
|
@ -1,13 +1,33 @@
|
||||||
[Google Code]: http://code.google.com/p/simple-build-tool
|
[Google Code]: http://code.google.com/p/simple-build-tool
|
||||||
[CONTRIBUTING]: CONTRIBUTING.md
|
[CONTRIBUTING]: CONTRIBUTING.md
|
||||||
[Setup]: http://www.scala-sbt.org/release/docs/Getting-Started/Setup
|
[Setup]: http://www.scala-sbt.org/release/docs/Getting-Started/Setup
|
||||||
[FAQ]: http://www.scala-sbt.org/release/docs/faq
|
[FAQ]: http://www.scala-sbt.org/release/docs/faq
|
||||||
|
[sbt-dev]: https://groups.google.com/d/forum/sbt-dev
|
||||||
|
[StackOverflow]: http://stackoverflow.com/tags/sbt
|
||||||
|
[LICENSE]: LICENSE
|
||||||
|
|
||||||
# sbt 0.13
|
sbt
|
||||||
|
===
|
||||||
|
|
||||||
|
sbt is a build tool for Scala, Java, and more.
|
||||||
|
For general documentation, see http://www.scala-sbt.org/.
|
||||||
|
|
||||||
|
Issues and Pull Requests
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
Please read [CONTRIBUTING] carefully before opening a GitHub Issue.
|
||||||
|
The short version: try [StackOverflow] and [sbt-dev]. Don't open an Issue.
|
||||||
|
|
||||||
|
sbt 0.13
|
||||||
|
--------
|
||||||
|
|
||||||
This is the 0.13.x series of sbt.
|
This is the 0.13.x series of sbt.
|
||||||
|
|
||||||
* [Setup]: Describes getting started with the latest binary release.
|
* [Setup]: Describes getting started with the latest binary release.
|
||||||
* See [CONTRIBUTING] for how to build from source, open an issue, fix or add documentation, or submit a pull request.
|
|
||||||
* [FAQ]: Explains how to get help and more.
|
* [FAQ]: Explains how to get help and more.
|
||||||
* [Google Code]: hosts sbt 0.7.7 and earlier versions
|
* [Google Code]: hosts sbt 0.7.7 and earlier versions
|
||||||
|
|
||||||
|
license
|
||||||
|
-------
|
||||||
|
|
||||||
|
See [LICENSE].
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue