-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move supplementary code into its own crate (#200)
* Move buildpack into buildpacks/go * Move lib to its own crate * Update inventory location during automation * Add changelog entry for workspace separation * Undo workspace dependencies
- Loading branch information
1 parent
bb2fbe5
commit 1a93d08
Showing
192 changed files
with
93 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
[package] | ||
name = "heroku-go-buildpack" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"buildpacks/go", | ||
"common/go-utils", | ||
] | ||
|
||
[workspace.package] | ||
version = "0.0.0" | ||
description = "Heroku Go Cloud Native Buildpack" | ||
rust-version = "1.75" | ||
edition = "2021" | ||
publish = false | ||
rust-version = "1.74" | ||
|
||
[lints.rust] | ||
[workspace.lints.rust] | ||
unreachable_pub = "warn" | ||
unsafe_code = "warn" | ||
# TODO: Enable this lint once the lib target is split out to a shared code crate, | ||
# which will reduce the false positives and make using this lint viable. | ||
# TODO: Enable this lint once the heroku-go-utils binary targets are split into | ||
# their own crates. This should reduce false positives and make this lint viable. | ||
# unused_crate_dependencies = "warn" | ||
|
||
[lints.clippy] | ||
[workspace.lints.clippy] | ||
panic_in_result_fn = "warn" | ||
pedantic = "warn" | ||
unwrap_used = "warn" | ||
|
||
[dependencies] | ||
flate2 = { version = "1", default-features = false, features = ["zlib"] } | ||
# libcnb has a much bigger impact on buildpack behaviour than any other dependencies, | ||
# so it's pinned to an exact version to isolate it from lockfile refreshes. | ||
libcnb = { version = "=0.17.0", features = ["trace"] } | ||
libherokubuildpack = { version = "=0.17.0", default-features = false, features = ["log"] } | ||
regex = "1" | ||
semver = "1" | ||
serde = "1" | ||
serde_json = "1" | ||
sha2 = "0.10" | ||
tar = "0.4" | ||
tempfile = "3" | ||
thiserror = "1" | ||
toml = "0.8" | ||
ureq = { version = "2", features = ["json"] } | ||
|
||
[dev-dependencies] | ||
libcnb-test = "=0.17.0" | ||
[profile.release] | ||
strip = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "heroku-go-buildpack" | ||
description = "Heroku Go Cloud Native Buildpack" | ||
version.workspace = true | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
publish.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
heroku-go-utils = { path = "../../common/go-utils" } | ||
flate2 = { version = "1", default-features = false, features = ["zlib"] } | ||
# libcnb has a much bigger impact on buildpack behaviour than any other dependencies, | ||
# so it's pinned to an exact version to isolate it from lockfile refreshes. | ||
libcnb = { version = "=0.17.0", features = ["trace"] } | ||
libherokubuildpack = { version = "=0.17.0", default-features = false, features = ["log"] } | ||
serde = "1" | ||
serde_json = "1" | ||
sha2 = "0.10" | ||
tar = "0.4" | ||
tempfile = "3" | ||
thiserror = "1" | ||
toml = "0.8" | ||
ureq = { version = "2", features = ["json"] } | ||
|
||
[dev-dependencies] | ||
libcnb-test = "=0.17.0" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "heroku-go-utils" | ||
description = "Libs and bins for the Heroku Go Buildpack" | ||
version.workspace = true | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
regex = "1" | ||
semver = "1" | ||
serde = "1" | ||
thiserror = "1" | ||
toml = "0.8" | ||
ureq = { version = "2", features = ["json"] } |
2 changes: 1 addition & 1 deletion
2
src/bin/diff_inventory.rs → common/go-utils/src/bin/diff_inventory.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/bin/update_inventory.rs → common/go-utils/src/bin/update_inventory.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters