Skip to content

Drop index/ prefix when uploading crate metadata. #4826

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

Merged
merged 1 commit into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_features_version_2
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/foo",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/foo",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_good_badges
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/ob/foobadger",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/ob/foobadger",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_good_categories
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_good_cat",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_good_cat",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_ignored_badges
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_ignored_badge",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_ignored_badge",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_ignored_categories
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_ignored_cat",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_ignored_cat",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/foo",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/foo",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_new",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_new",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate_git_upload
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fgt",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fgt",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fpp",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fpp",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fpp",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fpp",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_conflicts",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_conflicts",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_verified_email",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_verified_email",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_whitelist",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_whitelist",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate_twice
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_twice",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_twice",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate_weird_version
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_weird",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_weird",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w_/new_dep",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w_/new_dep",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate_with_readme
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_readme",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_readme",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_publish_new_krate_with_token
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_new",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_new",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w-/new-krate",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w-/new-krate",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ne/w-/new-krate",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ne/w-/new-krate",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/do/cs/docscrate",
"uri": "http://alexcrichton-test.s3.amazonaws.com/do/cs/docscrate",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/do/cs/docscrate",
"uri": "http://alexcrichton-test.s3.amazonaws.com/do/cs/docscrate",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited2",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited2",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/ra/te/rate_limited1",
"uri": "http://alexcrichton-test.s3.amazonaws.com/ra/te/rate_limited1",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_versions_updated_at",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_versions_updated_at",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_versions_updated_at",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_versions_updated_at",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
"method": "PUT",
"headers": [
[
Expand Down
4 changes: 2 additions & 2 deletions src/tests/http-data/krate_yanking_yank_max_version
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fy/k_/fyk_max",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fy/k_/fyk_max",
"method": "PUT",
"headers": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/krate_yanking_yank_works_as_intended
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/3/f/fyk",
"uri": "http://alexcrichton-test.s3.amazonaws.com/3/f/fyk",
"method": "PUT",
"headers": [
[
Expand Down
4 changes: 2 additions & 2 deletions src/tests/http-data/owners_new_crate_owner
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_owner",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_owner",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_owner",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_owner",
"method": "PUT",
"headers": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/tests/http-data/team_publish_owned
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_team_owned",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_team_owned",
"method": "PUT",
"headers": [
[
Expand Down
4 changes: 2 additions & 2 deletions src/tests/http-data/version_version_size
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_version_size",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_version_size",
"method": "PUT",
"headers": [
[
Expand Down Expand Up @@ -202,7 +202,7 @@
},
{
"request": {
"uri": "http://alexcrichton-test.s3.amazonaws.com/index/fo/o_/foo_version_size",
"uri": "http://alexcrichton-test.s3.amazonaws.com/fo/o_/foo_version_size",
"method": "PUT",
"headers": [
[
Expand Down
Loading